mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +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:
@@ -244,7 +244,7 @@ RULE_ARG_REGEX = re.compile(r"(\[.*\]|\S*)")
|
||||
VALID_TYPES = ['account', '-account', 'auth', '-auth', 'password', '-password', 'session', '-session']
|
||||
|
||||
|
||||
class PamdLine(object):
|
||||
class PamdLine:
|
||||
|
||||
def __init__(self, line):
|
||||
self.line = line
|
||||
@@ -403,7 +403,7 @@ class PamdRule(PamdLine):
|
||||
|
||||
# PamdService encapsulates an entire service and contains one or more rules. It seems the best way is to do this
|
||||
# as a doubly linked list.
|
||||
class PamdService(object):
|
||||
class PamdService:
|
||||
|
||||
def __init__(self, content):
|
||||
self._head = None
|
||||
|
||||
Reference in New Issue
Block a user