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:
@@ -62,7 +62,7 @@ def a_module(term):
|
||||
return False
|
||||
|
||||
|
||||
class TestModule(object):
|
||||
class TestModule:
|
||||
''' Ansible jinja2 tests '''
|
||||
|
||||
def tests(self):
|
||||
|
||||
@@ -244,7 +244,7 @@ def ansible_type(data, dtype, alias=None):
|
||||
return _ansible_type(data, alias) in data_types
|
||||
|
||||
|
||||
class TestModule(object):
|
||||
class TestModule:
|
||||
|
||||
def tests(self):
|
||||
return {
|
||||
|
||||
@@ -88,7 +88,7 @@ def fqdn_valid(name, min_labels=1, allow_underscores=False):
|
||||
return (fobj.is_valid)
|
||||
|
||||
|
||||
class TestModule(object):
|
||||
class TestModule:
|
||||
''' Ansible test hostname validity.
|
||||
https://pypi.org/project/fqdn/
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user