mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-30 15:38:53 +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:
parent
f61847b116
commit
0c5466de47
242 changed files with 329 additions and 331 deletions
|
|
@ -791,7 +791,7 @@ except ImportError:
|
|||
SUPPORTS_DATA_TAGGING = False
|
||||
|
||||
|
||||
class DummyStdout(object):
|
||||
class DummyStdout:
|
||||
def flush(self):
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ class HostData:
|
|||
self.finish = time.time()
|
||||
|
||||
|
||||
class ElasticSource(object):
|
||||
class ElasticSource:
|
||||
def __init__(self, display):
|
||||
self.ansible_playbook = ""
|
||||
self.session = str(uuid.uuid4())
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ from ansible_collections.community.general.plugins.module_utils.datetime import
|
|||
)
|
||||
|
||||
|
||||
class AzureLogAnalyticsSource(object):
|
||||
class AzureLogAnalyticsSource:
|
||||
def __init__(self):
|
||||
self.ansible_check_mode = False
|
||||
self.ansible_playbook = ""
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ from ansible.plugins.callback import CallbackBase
|
|||
# * Better formatting of output before sending out to logentries data/api nodes.
|
||||
|
||||
|
||||
class PlainTextSocketAppender(object):
|
||||
class PlainTextSocketAppender:
|
||||
def __init__(self, display, LE_API='data.logentries.com', LE_PORT=80, LE_TLS_PORT=443):
|
||||
|
||||
self.LE_API = LE_API
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ class HostData:
|
|||
self.finish = time_ns()
|
||||
|
||||
|
||||
class OpenTelemetrySource(object):
|
||||
class OpenTelemetrySource:
|
||||
def __init__(self, display):
|
||||
self.ansible_playbook = ""
|
||||
self.session = str(uuid.uuid4())
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ from ansible_collections.community.general.plugins.module_utils.datetime import
|
|||
)
|
||||
|
||||
|
||||
class SplunkHTTPCollectorSource(object):
|
||||
class SplunkHTTPCollectorSource:
|
||||
def __init__(self):
|
||||
self.ansible_check_mode = False
|
||||
self.ansible_playbook = ""
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ from ansible_collections.community.general.plugins.module_utils.datetime import
|
|||
)
|
||||
|
||||
|
||||
class SumologicHTTPCollectorSource(object):
|
||||
class SumologicHTTPCollectorSource:
|
||||
def __init__(self):
|
||||
self.ansible_check_mode = False
|
||||
self.ansible_playbook = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue