mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Cleanup: remove unicode prefix, remove explicit inheritance from object (#11015)
* Address UP025: remove unicode literals from strings. * Address UP004: class inherits from 'object'.
This commit is contained in:
@@ -79,7 +79,7 @@ class PSAdapterError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class PSAdapter(object, metaclass=abc.ABCMeta):
|
||||
class PSAdapter(metaclass=abc.ABCMeta):
|
||||
NAME_ATTRS = ('name', 'cmdline')
|
||||
PATTERN_ATTRS = ('name', 'exe', 'cmdline')
|
||||
|
||||
@@ -176,7 +176,7 @@ def compare_lower(a, b):
|
||||
return a.lower() == b.lower()
|
||||
|
||||
|
||||
class Pids(object):
|
||||
class Pids:
|
||||
def __init__(self, module):
|
||||
|
||||
deps.validate(module)
|
||||
|
||||
Reference in New Issue
Block a user