summaryrefslogtreecommitdiff
path: root/test/lib/ansible_test/_internal/io.py
diff options
context:
space:
mode:
authorMatt Clay <mclay@redhat.com>2021-08-11 11:47:18 -0700
committerGitHub <noreply@github.com>2021-08-11 11:47:18 -0700
commitca2d2c5f38f2d4d4e6f6eed4f209520289c6f322 (patch)
tree772a0c20cb3165632190b0190b82afb1ae9c8a3e /test/lib/ansible_test/_internal/io.py
parent39605cdcce9745c6b193d6ae640f1f053a1d47cc (diff)
downloadansible-ca2d2c5f38f2d4d4e6f6eed4f209520289c6f322.tar.gz
ansible-test - Cleanup to prepare for pylint update. (#75469)
* ansible-test - Fix use of abstractproperty * ansible-test - Use dict.items() where possible. * ansible-test - Remove unused code. * ansible-test - Cleanup issues reported by pylint. * ansible-test - Use dict.items() where possible. * ansible-test - Use generator.
Diffstat (limited to 'test/lib/ansible_test/_internal/io.py')
-rw-r--r--test/lib/ansible_test/_internal/io.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lib/ansible_test/_internal/io.py b/test/lib/ansible_test/_internal/io.py
index da69da4094..3ceda56681 100644
--- a/test/lib/ansible_test/_internal/io.py
+++ b/test/lib/ansible_test/_internal/io.py
@@ -87,8 +87,8 @@ def open_binary_file(path, mode='rb'): # type: (str, str) -> t.BinaryIO
class SortedSetEncoder(json.JSONEncoder):
"""Encode sets as sorted lists."""
- def default(self, obj): # pylint: disable=method-hidden, arguments-differ
- if isinstance(obj, set):
- return sorted(obj)
+ def default(self, o):
+ if isinstance(o, set):
+ return sorted(o)
- return json.JSONEncoder.default(self, obj)
+ return json.JSONEncoder.default(self, o)