1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-30 07:28:52 +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:
Felix Fontein 2025-10-30 20:17:10 +01:00 committed by GitHub
parent f61847b116
commit 0c5466de47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
242 changed files with 329 additions and 331 deletions

View file

@ -791,7 +791,7 @@ except ImportError:
SUPPORTS_DATA_TAGGING = False
class DummyStdout(object):
class DummyStdout:
def flush(self):
pass

View file

@ -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())

View file

@ -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 = ""

View file

@ -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

View file

@ -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())

View file

@ -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 = ""

View file

@ -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 = ""