From 41b4ddb942b56f306b8f52078e4ba83f58c66650 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sun, 9 Oct 2022 16:00:24 +0200 Subject: [PATCH] Use `super()` instead of `super(__class__, self)` (#686) Removes some further Python 2 intricicanties. It is `ruff` rule SPR001, taken from `flake8-super`. - https://github.com/charliermarsh/ruff#rules - https://pypi.org/project/flake8-super/ Implemented with: ruff --select SPR001 apprise test --fix --- apprise/AppriseLocale.py | 2 +- apprise/attachment/AttachBase.py | 2 +- apprise/attachment/AttachFile.py | 2 +- apprise/attachment/AttachHTTP.py | 4 ++-- apprise/config/ConfigBase.py | 2 +- apprise/config/ConfigFile.py | 2 +- apprise/config/ConfigHTTP.py | 2 +- apprise/config/ConfigMemory.py | 2 +- apprise/conversion.py | 2 +- apprise/decorators/CustomNotifyPlugin.py | 2 +- apprise/plugins/NotifyAppriseAPI.py | 2 +- apprise/plugins/NotifyBark.py | 2 +- apprise/plugins/NotifyBase.py | 4 ++-- apprise/plugins/NotifyBoxcar.py | 2 +- apprise/plugins/NotifyClickSend.py | 2 +- apprise/plugins/NotifyD7Networks.py | 2 +- apprise/plugins/NotifyDBus.py | 2 +- apprise/plugins/NotifyDapnet.py | 2 +- apprise/plugins/NotifyDingTalk.py | 2 +- apprise/plugins/NotifyDiscord.py | 2 +- apprise/plugins/NotifyEmail.py | 2 +- apprise/plugins/NotifyEmby.py | 2 +- apprise/plugins/NotifyEnigma2.py | 2 +- apprise/plugins/NotifyFCM/__init__.py | 2 +- apprise/plugins/NotifyFaast.py | 2 +- apprise/plugins/NotifyFlock.py | 2 +- apprise/plugins/NotifyForm.py | 2 +- apprise/plugins/NotifyGitter.py | 2 +- apprise/plugins/NotifyGnome.py | 2 +- apprise/plugins/NotifyGoogleChat.py | 2 +- apprise/plugins/NotifyGotify.py | 2 +- apprise/plugins/NotifyGrowl.py | 2 +- apprise/plugins/NotifyHomeAssistant.py | 2 +- apprise/plugins/NotifyIFTTT.py | 2 +- apprise/plugins/NotifyJSON.py | 2 +- apprise/plugins/NotifyJoin.py | 2 +- apprise/plugins/NotifyKavenegar.py | 2 +- apprise/plugins/NotifyKumulos.py | 2 +- apprise/plugins/NotifyLametric.py | 2 +- apprise/plugins/NotifyLine.py | 2 +- apprise/plugins/NotifyMQTT.py | 2 +- apprise/plugins/NotifyMSG91.py | 2 +- apprise/plugins/NotifyMSTeams.py | 2 +- apprise/plugins/NotifyMacOSX.py | 2 +- apprise/plugins/NotifyMailgun.py | 2 +- apprise/plugins/NotifyMatrix.py | 2 +- apprise/plugins/NotifyMattermost.py | 2 +- apprise/plugins/NotifyMessageBird.py | 2 +- apprise/plugins/NotifyNextcloud.py | 2 +- apprise/plugins/NotifyNextcloudTalk.py | 2 +- apprise/plugins/NotifyNotica.py | 2 +- apprise/plugins/NotifyNotifico.py | 2 +- apprise/plugins/NotifyNtfy.py | 2 +- apprise/plugins/NotifyOffice365.py | 2 +- apprise/plugins/NotifyOneSignal.py | 2 +- apprise/plugins/NotifyOpsgenie.py | 2 +- apprise/plugins/NotifyPagerDuty.py | 2 +- apprise/plugins/NotifyParsePlatform.py | 2 +- apprise/plugins/NotifyPopcornNotify.py | 2 +- apprise/plugins/NotifyProwl.py | 2 +- apprise/plugins/NotifyPushBullet.py | 2 +- apprise/plugins/NotifyPushSafer.py | 2 +- apprise/plugins/NotifyPushed.py | 2 +- apprise/plugins/NotifyPushjet.py | 2 +- apprise/plugins/NotifyPushover.py | 2 +- apprise/plugins/NotifyReddit.py | 2 +- apprise/plugins/NotifyRocketChat.py | 2 +- apprise/plugins/NotifyRyver.py | 2 +- apprise/plugins/NotifySES.py | 2 +- apprise/plugins/NotifySMSEagle.py | 2 +- apprise/plugins/NotifySMTP2Go.py | 2 +- apprise/plugins/NotifySNS.py | 2 +- apprise/plugins/NotifySendGrid.py | 2 +- apprise/plugins/NotifyServerChan.py | 2 +- apprise/plugins/NotifySignalAPI.py | 2 +- apprise/plugins/NotifySimplePush.py | 2 +- apprise/plugins/NotifySinch.py | 2 +- apprise/plugins/NotifySlack.py | 2 +- apprise/plugins/NotifySparkPost.py | 2 +- apprise/plugins/NotifySpontit.py | 2 +- apprise/plugins/NotifyStreamlabs.py | 2 +- apprise/plugins/NotifySyslog.py | 2 +- apprise/plugins/NotifyTechulusPush.py | 2 +- apprise/plugins/NotifyTelegram.py | 2 +- apprise/plugins/NotifyTwilio.py | 2 +- apprise/plugins/NotifyTwist.py | 2 +- apprise/plugins/NotifyTwitter.py | 2 +- apprise/plugins/NotifyVonage.py | 2 +- apprise/plugins/NotifyWebexTeams.py | 2 +- apprise/plugins/NotifyWindows.py | 2 +- apprise/plugins/NotifyXBMC.py | 2 +- apprise/plugins/NotifyXML.py | 2 +- apprise/plugins/NotifyZulip.py | 2 +- test/test_api.py | 12 ++++++------ test/test_apprise_attachments.py | 2 +- test/test_apprise_config.py | 8 ++++---- test/test_asyncio.py | 4 ++-- test/test_attach_http.py | 2 +- test/test_cli.py | 6 +++--- test/test_config_http.py | 2 +- test/test_rest_plugins.py | 18 +++++++++--------- 101 files changed, 122 insertions(+), 122 deletions(-) diff --git a/apprise/AppriseLocale.py b/apprise/AppriseLocale.py index 9da8467b..0288c045 100644 --- a/apprise/AppriseLocale.py +++ b/apprise/AppriseLocale.py @@ -67,7 +67,7 @@ class LazyTranslation: """ self.text = text - super(LazyTranslation, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) def __str__(self): return gettext.gettext(self.text) diff --git a/apprise/attachment/AttachBase.py b/apprise/attachment/AttachBase.py index 16f6c642..a4b04544 100644 --- a/apprise/attachment/AttachBase.py +++ b/apprise/attachment/AttachBase.py @@ -120,7 +120,7 @@ class AttachBase(URLBase): should be considered expired. """ - super(AttachBase, self).__init__(**kwargs) + super().__init__(**kwargs) if not mimetypes.inited: # Ensure mimetypes has been initialized diff --git a/apprise/attachment/AttachFile.py b/apprise/attachment/AttachFile.py index 20ee1519..f1024a98 100644 --- a/apprise/attachment/AttachFile.py +++ b/apprise/attachment/AttachFile.py @@ -50,7 +50,7 @@ class AttachFile(AttachBase): Initialize Local File Attachment Object """ - super(AttachFile, self).__init__(**kwargs) + super().__init__(**kwargs) # Store path but mark it dirty since we have not performed any # verification at this point. diff --git a/apprise/attachment/AttachHTTP.py b/apprise/attachment/AttachHTTP.py index da1d698e..d91deb18 100644 --- a/apprise/attachment/AttachHTTP.py +++ b/apprise/attachment/AttachHTTP.py @@ -61,7 +61,7 @@ class AttachHTTP(AttachBase): additionally include as part of the server headers to post with """ - super(AttachHTTP, self).__init__(**kwargs) + super().__init__(**kwargs) self.schema = 'https' if self.secure else 'http' @@ -254,7 +254,7 @@ class AttachHTTP(AttachBase): self._temp_file.close() self._temp_file = None - super(AttachHTTP, self).invalidate() + super().invalidate() def url(self, privacy=False, *args, **kwargs): """ diff --git a/apprise/config/ConfigBase.py b/apprise/config/ConfigBase.py index d504a98d..50536c66 100644 --- a/apprise/config/ConfigBase.py +++ b/apprise/config/ConfigBase.py @@ -113,7 +113,7 @@ class ConfigBase(URLBase): these 'include' entries to be honored, this value must be set to True. """ - super(ConfigBase, self).__init__(**kwargs) + super().__init__(**kwargs) # Tracks the time the content was last retrieved on. This place a role # for cases where we are not caching our response and are required to diff --git a/apprise/config/ConfigFile.py b/apprise/config/ConfigFile.py index 10f0a463..6f5c1abe 100644 --- a/apprise/config/ConfigFile.py +++ b/apprise/config/ConfigFile.py @@ -53,7 +53,7 @@ class ConfigFile(ConfigBase): additionally include as part of the server headers to post with """ - super(ConfigFile, self).__init__(**kwargs) + super().__init__(**kwargs) # Store our file path as it was set self.path = os.path.abspath(os.path.expanduser(path)) diff --git a/apprise/config/ConfigHTTP.py b/apprise/config/ConfigHTTP.py index 795c6fac..8c3e70db 100644 --- a/apprise/config/ConfigHTTP.py +++ b/apprise/config/ConfigHTTP.py @@ -75,7 +75,7 @@ class ConfigHTTP(ConfigBase): additionally include as part of the server headers to post with """ - super(ConfigHTTP, self).__init__(**kwargs) + super().__init__(**kwargs) self.schema = 'https' if self.secure else 'http' diff --git a/apprise/config/ConfigMemory.py b/apprise/config/ConfigMemory.py index c8d49a14..2900cce9 100644 --- a/apprise/config/ConfigMemory.py +++ b/apprise/config/ConfigMemory.py @@ -46,7 +46,7 @@ class ConfigMemory(ConfigBase): Memory objects just store the raw configuration in memory. There is no external reference point. It's always considered cached. """ - super(ConfigMemory, self).__init__(**kwargs) + super().__init__(**kwargs) # Store our raw config into memory self.content = content diff --git a/apprise/conversion.py b/apprise/conversion.py index 3b692aa6..a80b4d6f 100644 --- a/apprise/conversion.py +++ b/apprise/conversion.py @@ -99,7 +99,7 @@ class HTMLConverter(HTMLParser, object): BLOCK_END = {} def __init__(self, **kwargs): - super(HTMLConverter, self).__init__(**kwargs) + super().__init__(**kwargs) # Shoudl we store the text content or not? self._do_store = True diff --git a/apprise/decorators/CustomNotifyPlugin.py b/apprise/decorators/CustomNotifyPlugin.py index 39fb51a9..7c256a84 100644 --- a/apprise/decorators/CustomNotifyPlugin.py +++ b/apprise/decorators/CustomNotifyPlugin.py @@ -134,7 +134,7 @@ class CustomNotifyPlugin(NotifyBase): """ # init parent - super(CustomNotifyPluginWrapper, self).__init__(**kwargs) + super().__init__(**kwargs) self._default_args = {} diff --git a/apprise/plugins/NotifyAppriseAPI.py b/apprise/plugins/NotifyAppriseAPI.py index 10d52d5b..b4092408 100644 --- a/apprise/plugins/NotifyAppriseAPI.py +++ b/apprise/plugins/NotifyAppriseAPI.py @@ -133,7 +133,7 @@ class NotifyAppriseAPI(NotifyBase): additionally include as part of the server headers to post with """ - super(NotifyAppriseAPI, self).__init__(**kwargs) + super().__init__(**kwargs) self.fullpath = kwargs.get('fullpath') if not isinstance(self.fullpath, str): diff --git a/apprise/plugins/NotifyBark.py b/apprise/plugins/NotifyBark.py index d6283c02..48be1bf5 100644 --- a/apprise/plugins/NotifyBark.py +++ b/apprise/plugins/NotifyBark.py @@ -204,7 +204,7 @@ class NotifyBark(NotifyBase): """ Initialize Notify Bark Object """ - super(NotifyBark, self).__init__(**kwargs) + super().__init__(**kwargs) # Prepare our URL self.notify_url = '%s://%s%s/push' % ( diff --git a/apprise/plugins/NotifyBase.py b/apprise/plugins/NotifyBase.py index 4bb93779..25a3da7b 100644 --- a/apprise/plugins/NotifyBase.py +++ b/apprise/plugins/NotifyBase.py @@ -180,7 +180,7 @@ class NotifyBase(BASE_OBJECT): """ - super(NotifyBase, self).__init__(**kwargs) + super().__init__(**kwargs) if 'format' in kwargs: # Store the specified format if specified @@ -423,7 +423,7 @@ class NotifyBase(BASE_OBJECT): 'overflow': self.overflow_mode, } - params.update(super(NotifyBase, self).url_parameters(*args, **kwargs)) + params.update(super().url_parameters(*args, **kwargs)) # return default parameters return params diff --git a/apprise/plugins/NotifyBoxcar.py b/apprise/plugins/NotifyBoxcar.py index b40b71cd..572ea82e 100644 --- a/apprise/plugins/NotifyBoxcar.py +++ b/apprise/plugins/NotifyBoxcar.py @@ -150,7 +150,7 @@ class NotifyBoxcar(NotifyBase): """ Initialize Boxcar Object """ - super(NotifyBoxcar, self).__init__(**kwargs) + super().__init__(**kwargs) # Initialize tag list self.tags = list() diff --git a/apprise/plugins/NotifyClickSend.py b/apprise/plugins/NotifyClickSend.py index 9054c6f0..d9c8f652 100644 --- a/apprise/plugins/NotifyClickSend.py +++ b/apprise/plugins/NotifyClickSend.py @@ -132,7 +132,7 @@ class NotifyClickSend(NotifyBase): """ Initialize ClickSend Object """ - super(NotifyClickSend, self).__init__(**kwargs) + super().__init__(**kwargs) # Prepare Batch Mode Flag self.batch = batch diff --git a/apprise/plugins/NotifyD7Networks.py b/apprise/plugins/NotifyD7Networks.py index b7575d92..b539b0e0 100644 --- a/apprise/plugins/NotifyD7Networks.py +++ b/apprise/plugins/NotifyD7Networks.py @@ -177,7 +177,7 @@ class NotifyD7Networks(NotifyBase): """ Initialize D7 Networks Object """ - super(NotifyD7Networks, self).__init__(**kwargs) + super().__init__(**kwargs) # The Priority of the message if priority not in D7NETWORK_SMS_PRIORITIES: diff --git a/apprise/plugins/NotifyDBus.py b/apprise/plugins/NotifyDBus.py index b568dfe7..2034fe24 100644 --- a/apprise/plugins/NotifyDBus.py +++ b/apprise/plugins/NotifyDBus.py @@ -233,7 +233,7 @@ class NotifyDBus(NotifyBase): Initialize DBus Object """ - super(NotifyDBus, self).__init__(**kwargs) + super().__init__(**kwargs) # Track our notifications self.registry = {} diff --git a/apprise/plugins/NotifyDapnet.py b/apprise/plugins/NotifyDapnet.py index 27ea65cd..3eccc235 100644 --- a/apprise/plugins/NotifyDapnet.py +++ b/apprise/plugins/NotifyDapnet.py @@ -179,7 +179,7 @@ class NotifyDapnet(NotifyBase): """ Initialize Dapnet Object """ - super(NotifyDapnet, self).__init__(**kwargs) + super().__init__(**kwargs) # Parse our targets self.targets = list() diff --git a/apprise/plugins/NotifyDingTalk.py b/apprise/plugins/NotifyDingTalk.py index 68c06947..e18123b1 100644 --- a/apprise/plugins/NotifyDingTalk.py +++ b/apprise/plugins/NotifyDingTalk.py @@ -124,7 +124,7 @@ class NotifyDingTalk(NotifyBase): """ Initialize DingTalk Object """ - super(NotifyDingTalk, self).__init__(**kwargs) + super().__init__(**kwargs) # Secret Key (associated with project) self.token = validate_regex( diff --git a/apprise/plugins/NotifyDiscord.py b/apprise/plugins/NotifyDiscord.py index 48e2c283..a1bb0720 100644 --- a/apprise/plugins/NotifyDiscord.py +++ b/apprise/plugins/NotifyDiscord.py @@ -164,7 +164,7 @@ class NotifyDiscord(NotifyBase): Initialize Discord Object """ - super(NotifyDiscord, self).__init__(**kwargs) + super().__init__(**kwargs) # Webhook ID (associated with project) self.webhook_id = validate_regex(webhook_id) diff --git a/apprise/plugins/NotifyEmail.py b/apprise/plugins/NotifyEmail.py index 5858f090..dd29a780 100644 --- a/apprise/plugins/NotifyEmail.py +++ b/apprise/plugins/NotifyEmail.py @@ -419,7 +419,7 @@ class NotifyEmail(NotifyBase): The smtp_host and secure_mode can be automatically detected depending on how the URL was built """ - super(NotifyEmail, self).__init__(**kwargs) + super().__init__(**kwargs) # Handle SMTP vs SMTPS (Secure vs UnSecure) if not self.port: diff --git a/apprise/plugins/NotifyEmby.py b/apprise/plugins/NotifyEmby.py index d609149a..b617a79b 100644 --- a/apprise/plugins/NotifyEmby.py +++ b/apprise/plugins/NotifyEmby.py @@ -117,7 +117,7 @@ class NotifyEmby(NotifyBase): Initialize Emby Object """ - super(NotifyEmby, self).__init__(**kwargs) + super().__init__(**kwargs) if self.secure: self.schema = 'https' diff --git a/apprise/plugins/NotifyEnigma2.py b/apprise/plugins/NotifyEnigma2.py index f47b6718..0739a615 100644 --- a/apprise/plugins/NotifyEnigma2.py +++ b/apprise/plugins/NotifyEnigma2.py @@ -155,7 +155,7 @@ class NotifyEnigma2(NotifyBase): headers can be a dictionary of key/value pairs that you want to additionally include as part of the server headers to post with """ - super(NotifyEnigma2, self).__init__(**kwargs) + super().__init__(**kwargs) try: self.timeout = int(timeout) diff --git a/apprise/plugins/NotifyFCM/__init__.py b/apprise/plugins/NotifyFCM/__init__.py index eb21028e..b1cd40e5 100644 --- a/apprise/plugins/NotifyFCM/__init__.py +++ b/apprise/plugins/NotifyFCM/__init__.py @@ -218,7 +218,7 @@ class NotifyFCM(NotifyBase): Initialize Firebase Cloud Messaging """ - super(NotifyFCM, self).__init__(**kwargs) + super().__init__(**kwargs) if mode is None: # Detect our mode diff --git a/apprise/plugins/NotifyFaast.py b/apprise/plugins/NotifyFaast.py index d34b4800..025fdf59 100644 --- a/apprise/plugins/NotifyFaast.py +++ b/apprise/plugins/NotifyFaast.py @@ -84,7 +84,7 @@ class NotifyFaast(NotifyBase): """ Initialize Faast Object """ - super(NotifyFaast, self).__init__(**kwargs) + super().__init__(**kwargs) # Store the Authentication Token self.authtoken = validate_regex(authtoken) diff --git a/apprise/plugins/NotifyFlock.py b/apprise/plugins/NotifyFlock.py index 2c68cc1c..1c19a891 100644 --- a/apprise/plugins/NotifyFlock.py +++ b/apprise/plugins/NotifyFlock.py @@ -145,7 +145,7 @@ class NotifyFlock(NotifyBase): """ Initialize Flock Object """ - super(NotifyFlock, self).__init__(**kwargs) + super().__init__(**kwargs) # Build ourselves a target list self.targets = list() diff --git a/apprise/plugins/NotifyForm.py b/apprise/plugins/NotifyForm.py index 7ea4202c..e0e9807b 100644 --- a/apprise/plugins/NotifyForm.py +++ b/apprise/plugins/NotifyForm.py @@ -133,7 +133,7 @@ class NotifyForm(NotifyBase): additionally include as part of the server headers to post with """ - super(NotifyForm, self).__init__(**kwargs) + super().__init__(**kwargs) self.fullpath = kwargs.get('fullpath') if not isinstance(self.fullpath, str): diff --git a/apprise/plugins/NotifyGitter.py b/apprise/plugins/NotifyGitter.py index 57795983..f5081ab7 100644 --- a/apprise/plugins/NotifyGitter.py +++ b/apprise/plugins/NotifyGitter.py @@ -137,7 +137,7 @@ class NotifyGitter(NotifyBase): """ Initialize Gitter Object """ - super(NotifyGitter, self).__init__(**kwargs) + super().__init__(**kwargs) # Secret Key (associated with project) self.token = validate_regex( diff --git a/apprise/plugins/NotifyGnome.py b/apprise/plugins/NotifyGnome.py index b7bffd2c..3fd44040 100644 --- a/apprise/plugins/NotifyGnome.py +++ b/apprise/plugins/NotifyGnome.py @@ -164,7 +164,7 @@ class NotifyGnome(NotifyBase): Initialize Gnome Object """ - super(NotifyGnome, self).__init__(**kwargs) + super().__init__(**kwargs) # The urgency of the message self.urgency = int( diff --git a/apprise/plugins/NotifyGoogleChat.py b/apprise/plugins/NotifyGoogleChat.py index 2cba9840..7784e492 100644 --- a/apprise/plugins/NotifyGoogleChat.py +++ b/apprise/plugins/NotifyGoogleChat.py @@ -138,7 +138,7 @@ class NotifyGoogleChat(NotifyBase): Initialize Google Chat Object """ - super(NotifyGoogleChat, self).__init__(**kwargs) + super().__init__(**kwargs) # Workspace (associated with project) self.workspace = validate_regex(workspace) diff --git a/apprise/plugins/NotifyGotify.py b/apprise/plugins/NotifyGotify.py index 07728923..96691514 100644 --- a/apprise/plugins/NotifyGotify.py +++ b/apprise/plugins/NotifyGotify.py @@ -155,7 +155,7 @@ class NotifyGotify(NotifyBase): Initialize Gotify Object """ - super(NotifyGotify, self).__init__(**kwargs) + super().__init__(**kwargs) # Token (associated with project) self.token = validate_regex(token) diff --git a/apprise/plugins/NotifyGrowl.py b/apprise/plugins/NotifyGrowl.py index 921c4852..ca1975f6 100644 --- a/apprise/plugins/NotifyGrowl.py +++ b/apprise/plugins/NotifyGrowl.py @@ -187,7 +187,7 @@ class NotifyGrowl(NotifyBase): """ Initialize Growl Object """ - super(NotifyGrowl, self).__init__(**kwargs) + super().__init__(**kwargs) if not self.port: self.port = self.default_port diff --git a/apprise/plugins/NotifyHomeAssistant.py b/apprise/plugins/NotifyHomeAssistant.py index bb49462f..ff4926ea 100644 --- a/apprise/plugins/NotifyHomeAssistant.py +++ b/apprise/plugins/NotifyHomeAssistant.py @@ -115,7 +115,7 @@ class NotifyHomeAssistant(NotifyBase): """ Initialize Home Assistant Object """ - super(NotifyHomeAssistant, self).__init__(**kwargs) + super().__init__(**kwargs) self.fullpath = kwargs.get('fullpath', '') diff --git a/apprise/plugins/NotifyIFTTT.py b/apprise/plugins/NotifyIFTTT.py index b735a4d0..976c22fc 100644 --- a/apprise/plugins/NotifyIFTTT.py +++ b/apprise/plugins/NotifyIFTTT.py @@ -147,7 +147,7 @@ class NotifyIFTTT(NotifyBase): reference to Value1, Value2, and/or Value3 """ - super(NotifyIFTTT, self).__init__(**kwargs) + super().__init__(**kwargs) # Webhook ID (associated with project) self.webhook_id = validate_regex(webhook_id) diff --git a/apprise/plugins/NotifyJSON.py b/apprise/plugins/NotifyJSON.py index c9ce1edc..89794495 100644 --- a/apprise/plugins/NotifyJSON.py +++ b/apprise/plugins/NotifyJSON.py @@ -135,7 +135,7 @@ class NotifyJSON(NotifyBase): additionally include as part of the server headers to post with """ - super(NotifyJSON, self).__init__(**kwargs) + super().__init__(**kwargs) self.fullpath = kwargs.get('fullpath') if not isinstance(self.fullpath, str): diff --git a/apprise/plugins/NotifyJoin.py b/apprise/plugins/NotifyJoin.py index 9ac2f244..02a9f236 100644 --- a/apprise/plugins/NotifyJoin.py +++ b/apprise/plugins/NotifyJoin.py @@ -194,7 +194,7 @@ class NotifyJoin(NotifyBase): """ Initialize Join Object """ - super(NotifyJoin, self).__init__(**kwargs) + super().__init__(**kwargs) # Track whether or not we want to send an image with our notification # or not. diff --git a/apprise/plugins/NotifyKavenegar.py b/apprise/plugins/NotifyKavenegar.py index 97c69366..f9d17b33 100644 --- a/apprise/plugins/NotifyKavenegar.py +++ b/apprise/plugins/NotifyKavenegar.py @@ -149,7 +149,7 @@ class NotifyKavenegar(NotifyBase): """ Initialize Kavenegar Object """ - super(NotifyKavenegar, self).__init__(**kwargs) + super().__init__(**kwargs) # API Key (associated with project) self.apikey = validate_regex( diff --git a/apprise/plugins/NotifyKumulos.py b/apprise/plugins/NotifyKumulos.py index 8506aef3..b858bfbd 100644 --- a/apprise/plugins/NotifyKumulos.py +++ b/apprise/plugins/NotifyKumulos.py @@ -104,7 +104,7 @@ class NotifyKumulos(NotifyBase): """ Initialize Kumulos Object """ - super(NotifyKumulos, self).__init__(**kwargs) + super().__init__(**kwargs) # API Key (associated with project) self.apikey = validate_regex( diff --git a/apprise/plugins/NotifyLametric.py b/apprise/plugins/NotifyLametric.py index 1c4eaa04..b2ff0973 100644 --- a/apprise/plugins/NotifyLametric.py +++ b/apprise/plugins/NotifyLametric.py @@ -467,7 +467,7 @@ class NotifyLametric(NotifyBase): """ Initialize LaMetric Object """ - super(NotifyLametric, self).__init__(**kwargs) + super().__init__(**kwargs) self.mode = mode.strip().lower() \ if isinstance(mode, str) \ diff --git a/apprise/plugins/NotifyLine.py b/apprise/plugins/NotifyLine.py index 7cb66097..cdb17193 100644 --- a/apprise/plugins/NotifyLine.py +++ b/apprise/plugins/NotifyLine.py @@ -114,7 +114,7 @@ class NotifyLine(NotifyBase): """ Initialize Line Object """ - super(NotifyLine, self).__init__(**kwargs) + super().__init__(**kwargs) # Long-Lived Access token (generated from User Profile) self.token = validate_regex(token) diff --git a/apprise/plugins/NotifyMQTT.py b/apprise/plugins/NotifyMQTT.py index 9ea1e44b..0a3f910a 100644 --- a/apprise/plugins/NotifyMQTT.py +++ b/apprise/plugins/NotifyMQTT.py @@ -223,7 +223,7 @@ class NotifyMQTT(NotifyBase): Initialize MQTT Object """ - super(NotifyMQTT, self).__init__(**kwargs) + super().__init__(**kwargs) # Initialize topics self.topics = parse_list(targets) diff --git a/apprise/plugins/NotifyMSG91.py b/apprise/plugins/NotifyMSG91.py index acbfa8d4..85e9489f 100644 --- a/apprise/plugins/NotifyMSG91.py +++ b/apprise/plugins/NotifyMSG91.py @@ -156,7 +156,7 @@ class NotifyMSG91(NotifyBase): """ Initialize MSG91 Object """ - super(NotifyMSG91, self).__init__(**kwargs) + super().__init__(**kwargs) # Authentication Key (associated with project) self.authkey = validate_regex( diff --git a/apprise/plugins/NotifyMSTeams.py b/apprise/plugins/NotifyMSTeams.py index 65631037..98d59fbb 100644 --- a/apprise/plugins/NotifyMSTeams.py +++ b/apprise/plugins/NotifyMSTeams.py @@ -214,7 +214,7 @@ class NotifyMSTeams(NotifyBase): template arguments that can not be over-ridden are: `body`, `title`, and `type`. """ - super(NotifyMSTeams, self).__init__(**kwargs) + super().__init__(**kwargs) try: self.version = int(version) diff --git a/apprise/plugins/NotifyMacOSX.py b/apprise/plugins/NotifyMacOSX.py index dfd8080f..d612b981 100644 --- a/apprise/plugins/NotifyMacOSX.py +++ b/apprise/plugins/NotifyMacOSX.py @@ -124,7 +124,7 @@ class NotifyMacOSX(NotifyBase): Initialize MacOSX Object """ - super(NotifyMacOSX, self).__init__(**kwargs) + super().__init__(**kwargs) # Track whether or not we want to send an image with our notification # or not. diff --git a/apprise/plugins/NotifyMailgun.py b/apprise/plugins/NotifyMailgun.py index 855d65e1..c3d2fe8d 100644 --- a/apprise/plugins/NotifyMailgun.py +++ b/apprise/plugins/NotifyMailgun.py @@ -203,7 +203,7 @@ class NotifyMailgun(NotifyBase): """ Initialize Mailgun Object """ - super(NotifyMailgun, self).__init__(**kwargs) + super().__init__(**kwargs) # API Key (associated with project) self.apikey = validate_regex(apikey) diff --git a/apprise/plugins/NotifyMatrix.py b/apprise/plugins/NotifyMatrix.py index f62b16e0..9f19e128 100644 --- a/apprise/plugins/NotifyMatrix.py +++ b/apprise/plugins/NotifyMatrix.py @@ -239,7 +239,7 @@ class NotifyMatrix(NotifyBase): """ Initialize Matrix Object """ - super(NotifyMatrix, self).__init__(**kwargs) + super().__init__(**kwargs) # Prepare a list of rooms to connect and notify self.rooms = parse_list(targets) diff --git a/apprise/plugins/NotifyMattermost.py b/apprise/plugins/NotifyMattermost.py index 9c776b51..76b6e19d 100644 --- a/apprise/plugins/NotifyMattermost.py +++ b/apprise/plugins/NotifyMattermost.py @@ -145,7 +145,7 @@ class NotifyMattermost(NotifyBase): """ Initialize Mattermost Object """ - super(NotifyMattermost, self).__init__(**kwargs) + super().__init__(**kwargs) if self.secure: self.schema = 'https' diff --git a/apprise/plugins/NotifyMessageBird.py b/apprise/plugins/NotifyMessageBird.py index 4b1da524..05766334 100644 --- a/apprise/plugins/NotifyMessageBird.py +++ b/apprise/plugins/NotifyMessageBird.py @@ -115,7 +115,7 @@ class NotifyMessageBird(NotifyBase): """ Initialize MessageBird Object """ - super(NotifyMessageBird, self).__init__(**kwargs) + super().__init__(**kwargs) # API Key (associated with project) self.apikey = validate_regex( diff --git a/apprise/plugins/NotifyNextcloud.py b/apprise/plugins/NotifyNextcloud.py index 6db7f274..168290a3 100644 --- a/apprise/plugins/NotifyNextcloud.py +++ b/apprise/plugins/NotifyNextcloud.py @@ -125,7 +125,7 @@ class NotifyNextcloud(NotifyBase): """ Initialize Nextcloud Object """ - super(NotifyNextcloud, self).__init__(**kwargs) + super().__init__(**kwargs) self.targets = parse_list(targets) if len(self.targets) == 0: diff --git a/apprise/plugins/NotifyNextcloudTalk.py b/apprise/plugins/NotifyNextcloudTalk.py index a1853795..ab3fbecc 100644 --- a/apprise/plugins/NotifyNextcloudTalk.py +++ b/apprise/plugins/NotifyNextcloudTalk.py @@ -106,7 +106,7 @@ class NotifyNextcloudTalk(NotifyBase): """ Initialize Nextcloud Talk Object """ - super(NotifyNextcloudTalk, self).__init__(**kwargs) + super().__init__(**kwargs) if self.user is None or self.password is None: msg = 'User and password have to be specified.' diff --git a/apprise/plugins/NotifyNotica.py b/apprise/plugins/NotifyNotica.py index 36cd77cb..6494e8d9 100644 --- a/apprise/plugins/NotifyNotica.py +++ b/apprise/plugins/NotifyNotica.py @@ -160,7 +160,7 @@ class NotifyNotica(NotifyBase): """ Initialize Notica Object """ - super(NotifyNotica, self).__init__(**kwargs) + super().__init__(**kwargs) # Token (associated with project) self.token = validate_regex(token) diff --git a/apprise/plugins/NotifyNotifico.py b/apprise/plugins/NotifyNotifico.py index 98766174..00bee4b1 100644 --- a/apprise/plugins/NotifyNotifico.py +++ b/apprise/plugins/NotifyNotifico.py @@ -160,7 +160,7 @@ class NotifyNotifico(NotifyBase): """ Initialize Notifico Object """ - super(NotifyNotifico, self).__init__(**kwargs) + super().__init__(**kwargs) # Assign our message hook self.project_id = validate_regex( diff --git a/apprise/plugins/NotifyNtfy.py b/apprise/plugins/NotifyNtfy.py index c7b2475d..8482165b 100644 --- a/apprise/plugins/NotifyNtfy.py +++ b/apprise/plugins/NotifyNtfy.py @@ -242,7 +242,7 @@ class NotifyNtfy(NotifyBase): """ Initialize ntfy Object """ - super(NotifyNtfy, self).__init__(**kwargs) + super().__init__(**kwargs) # Prepare our mode self.mode = mode.strip().lower() \ diff --git a/apprise/plugins/NotifyOffice365.py b/apprise/plugins/NotifyOffice365.py index 5c8ea934..1d2f3a0d 100644 --- a/apprise/plugins/NotifyOffice365.py +++ b/apprise/plugins/NotifyOffice365.py @@ -173,7 +173,7 @@ class NotifyOffice365(NotifyBase): """ Initialize Office 365 Object """ - super(NotifyOffice365, self).__init__(**kwargs) + super().__init__(**kwargs) # Tenant identifier self.tenant = validate_regex( diff --git a/apprise/plugins/NotifyOneSignal.py b/apprise/plugins/NotifyOneSignal.py index 3d936f5b..27212216 100644 --- a/apprise/plugins/NotifyOneSignal.py +++ b/apprise/plugins/NotifyOneSignal.py @@ -178,7 +178,7 @@ class NotifyOneSignal(NotifyBase): Initialize OneSignal """ - super(NotifyOneSignal, self).__init__(**kwargs) + super().__init__(**kwargs) # The apikey associated with the account self.apikey = validate_regex(apikey) diff --git a/apprise/plugins/NotifyOpsgenie.py b/apprise/plugins/NotifyOpsgenie.py index 813244cf..26d75c4d 100644 --- a/apprise/plugins/NotifyOpsgenie.py +++ b/apprise/plugins/NotifyOpsgenie.py @@ -262,7 +262,7 @@ class NotifyOpsgenie(NotifyBase): """ Initialize Opsgenie Object """ - super(NotifyOpsgenie, self).__init__(**kwargs) + super().__init__(**kwargs) # API Key (associated with project) self.apikey = validate_regex(apikey) diff --git a/apprise/plugins/NotifyPagerDuty.py b/apprise/plugins/NotifyPagerDuty.py index deff363d..316c3f3c 100644 --- a/apprise/plugins/NotifyPagerDuty.py +++ b/apprise/plugins/NotifyPagerDuty.py @@ -192,7 +192,7 @@ class NotifyPagerDuty(NotifyBase): """ Initialize Pager Duty Object """ - super(NotifyPagerDuty, self).__init__(**kwargs) + super().__init__(**kwargs) # Long-Lived Access token (generated from User Profile) self.apikey = validate_regex(apikey) diff --git a/apprise/plugins/NotifyParsePlatform.py b/apprise/plugins/NotifyParsePlatform.py index 40582a8d..3944b902 100644 --- a/apprise/plugins/NotifyParsePlatform.py +++ b/apprise/plugins/NotifyParsePlatform.py @@ -130,7 +130,7 @@ class NotifyParsePlatform(NotifyBase): """ Initialize Parse Platform Object """ - super(NotifyParsePlatform, self).__init__(**kwargs) + super().__init__(**kwargs) self.fullpath = kwargs.get('fullpath') if not isinstance(self.fullpath, str): diff --git a/apprise/plugins/NotifyPopcornNotify.py b/apprise/plugins/NotifyPopcornNotify.py index 7352c667..0fda030c 100644 --- a/apprise/plugins/NotifyPopcornNotify.py +++ b/apprise/plugins/NotifyPopcornNotify.py @@ -105,7 +105,7 @@ class NotifyPopcornNotify(NotifyBase): """ Initialize PopcornNotify Object """ - super(NotifyPopcornNotify, self).__init__(**kwargs) + super().__init__(**kwargs) # Access Token (associated with project) self.apikey = validate_regex( diff --git a/apprise/plugins/NotifyProwl.py b/apprise/plugins/NotifyProwl.py index b41d7566..2bb714cb 100644 --- a/apprise/plugins/NotifyProwl.py +++ b/apprise/plugins/NotifyProwl.py @@ -143,7 +143,7 @@ class NotifyProwl(NotifyBase): """ Initialize Prowl Object """ - super(NotifyProwl, self).__init__(**kwargs) + super().__init__(**kwargs) # The Priority of the message self.priority = NotifyProwl.template_args['priority']['default'] \ diff --git a/apprise/plugins/NotifyPushBullet.py b/apprise/plugins/NotifyPushBullet.py index 53240d2e..e84b67de 100644 --- a/apprise/plugins/NotifyPushBullet.py +++ b/apprise/plugins/NotifyPushBullet.py @@ -115,7 +115,7 @@ class NotifyPushBullet(NotifyBase): """ Initialize PushBullet Object """ - super(NotifyPushBullet, self).__init__(**kwargs) + super().__init__(**kwargs) # Access Token (associated with project) self.accesstoken = validate_regex(accesstoken) diff --git a/apprise/plugins/NotifyPushSafer.py b/apprise/plugins/NotifyPushSafer.py index 3f495702..6275185e 100644 --- a/apprise/plugins/NotifyPushSafer.py +++ b/apprise/plugins/NotifyPushSafer.py @@ -400,7 +400,7 @@ class NotifyPushSafer(NotifyBase): """ Initialize PushSafer Object """ - super(NotifyPushSafer, self).__init__(**kwargs) + super().__init__(**kwargs) # # Priority diff --git a/apprise/plugins/NotifyPushed.py b/apprise/plugins/NotifyPushed.py index c6dfe6ad..4677b151 100644 --- a/apprise/plugins/NotifyPushed.py +++ b/apprise/plugins/NotifyPushed.py @@ -120,7 +120,7 @@ class NotifyPushed(NotifyBase): Initialize Pushed Object """ - super(NotifyPushed, self).__init__(**kwargs) + super().__init__(**kwargs) # Application Key (associated with project) self.app_key = validate_regex(app_key) diff --git a/apprise/plugins/NotifyPushjet.py b/apprise/plugins/NotifyPushjet.py index 49e6596e..d335a993 100644 --- a/apprise/plugins/NotifyPushjet.py +++ b/apprise/plugins/NotifyPushjet.py @@ -102,7 +102,7 @@ class NotifyPushjet(NotifyBase): """ Initialize Pushjet Object """ - super(NotifyPushjet, self).__init__(**kwargs) + super().__init__(**kwargs) # Secret Key (associated with project) self.secret_key = validate_regex(secret_key) diff --git a/apprise/plugins/NotifyPushover.py b/apprise/plugins/NotifyPushover.py index 1dfb5787..24e21395 100644 --- a/apprise/plugins/NotifyPushover.py +++ b/apprise/plugins/NotifyPushover.py @@ -251,7 +251,7 @@ class NotifyPushover(NotifyBase): """ Initialize Pushover Object """ - super(NotifyPushover, self).__init__(**kwargs) + super().__init__(**kwargs) # Access Token (associated with project) self.token = validate_regex(token) diff --git a/apprise/plugins/NotifyReddit.py b/apprise/plugins/NotifyReddit.py index e5709bf8..3526f298 100644 --- a/apprise/plugins/NotifyReddit.py +++ b/apprise/plugins/NotifyReddit.py @@ -240,7 +240,7 @@ class NotifyReddit(NotifyBase): """ Initialize Notify Reddit Object """ - super(NotifyReddit, self).__init__(**kwargs) + super().__init__(**kwargs) # Initialize subreddit list self.subreddits = set() diff --git a/apprise/plugins/NotifyRocketChat.py b/apprise/plugins/NotifyRocketChat.py index b8337ff5..9144a45d 100644 --- a/apprise/plugins/NotifyRocketChat.py +++ b/apprise/plugins/NotifyRocketChat.py @@ -188,7 +188,7 @@ class NotifyRocketChat(NotifyBase): """ Initialize Notify Rocket.Chat Object """ - super(NotifyRocketChat, self).__init__(**kwargs) + super().__init__(**kwargs) # Set our schema self.schema = 'https' if self.secure else 'http' diff --git a/apprise/plugins/NotifyRyver.py b/apprise/plugins/NotifyRyver.py index e186a84b..ea983d98 100644 --- a/apprise/plugins/NotifyRyver.py +++ b/apprise/plugins/NotifyRyver.py @@ -129,7 +129,7 @@ class NotifyRyver(NotifyBase): """ Initialize Ryver Object """ - super(NotifyRyver, self).__init__(**kwargs) + super().__init__(**kwargs) # API Token (associated with project) self.token = validate_regex( diff --git a/apprise/plugins/NotifySES.py b/apprise/plugins/NotifySES.py index 1c14d34a..fb87084e 100644 --- a/apprise/plugins/NotifySES.py +++ b/apprise/plugins/NotifySES.py @@ -217,7 +217,7 @@ class NotifySES(NotifyBase): """ Initialize Notify AWS SES Object """ - super(NotifySES, self).__init__(**kwargs) + super().__init__(**kwargs) # Store our AWS API Access Key self.aws_access_key_id = validate_regex(access_key_id) diff --git a/apprise/plugins/NotifySMSEagle.py b/apprise/plugins/NotifySMSEagle.py index 40e56269..5825ec17 100644 --- a/apprise/plugins/NotifySMSEagle.py +++ b/apprise/plugins/NotifySMSEagle.py @@ -191,7 +191,7 @@ class NotifySMSEagle(NotifyBase): """ Initialize SMSEagle Object """ - super(NotifySMSEagle, self).__init__(**kwargs) + super().__init__(**kwargs) # Prepare Flash Mode Flag self.flash = flash diff --git a/apprise/plugins/NotifySMTP2Go.py b/apprise/plugins/NotifySMTP2Go.py index 952604a7..4a87ae07 100644 --- a/apprise/plugins/NotifySMTP2Go.py +++ b/apprise/plugins/NotifySMTP2Go.py @@ -159,7 +159,7 @@ class NotifySMTP2Go(NotifyBase): """ Initialize SMTP2Go Object """ - super(NotifySMTP2Go, self).__init__(**kwargs) + super().__init__(**kwargs) # API Key (associated with project) self.apikey = validate_regex(apikey) diff --git a/apprise/plugins/NotifySNS.py b/apprise/plugins/NotifySNS.py index 8af0847a..f3aff85f 100644 --- a/apprise/plugins/NotifySNS.py +++ b/apprise/plugins/NotifySNS.py @@ -159,7 +159,7 @@ class NotifySNS(NotifyBase): """ Initialize Notify AWS SNS Object """ - super(NotifySNS, self).__init__(**kwargs) + super().__init__(**kwargs) # Store our AWS API Access Key self.aws_access_key_id = validate_regex(access_key_id) diff --git a/apprise/plugins/NotifySendGrid.py b/apprise/plugins/NotifySendGrid.py index 12f829fb..46690fc4 100644 --- a/apprise/plugins/NotifySendGrid.py +++ b/apprise/plugins/NotifySendGrid.py @@ -159,7 +159,7 @@ class NotifySendGrid(NotifyBase): """ Initialize Notify SendGrid Object """ - super(NotifySendGrid, self).__init__(**kwargs) + super().__init__(**kwargs) # API Key (associated with project) self.apikey = validate_regex( diff --git a/apprise/plugins/NotifyServerChan.py b/apprise/plugins/NotifyServerChan.py index 2af40d73..21d97a78 100644 --- a/apprise/plugins/NotifyServerChan.py +++ b/apprise/plugins/NotifyServerChan.py @@ -79,7 +79,7 @@ class NotifyServerChan(NotifyBase): """ Initialize ServerChan Object """ - super(NotifyServerChan, self).__init__(**kwargs) + super().__init__(**kwargs) # Token (associated with project) self.token = validate_regex( diff --git a/apprise/plugins/NotifySignalAPI.py b/apprise/plugins/NotifySignalAPI.py index a2442509..73037a15 100644 --- a/apprise/plugins/NotifySignalAPI.py +++ b/apprise/plugins/NotifySignalAPI.py @@ -157,7 +157,7 @@ class NotifySignalAPI(NotifyBase): """ Initialize SignalAPI Object """ - super(NotifySignalAPI, self).__init__(**kwargs) + super().__init__(**kwargs) # Prepare Batch Mode Flag self.batch = batch diff --git a/apprise/plugins/NotifySimplePush.py b/apprise/plugins/NotifySimplePush.py index 400216e7..2cd0f8ef 100644 --- a/apprise/plugins/NotifySimplePush.py +++ b/apprise/plugins/NotifySimplePush.py @@ -125,7 +125,7 @@ class NotifySimplePush(NotifyBase): """ Initialize SimplePush Object """ - super(NotifySimplePush, self).__init__(**kwargs) + super().__init__(**kwargs) # API Key (associated with project) self.apikey = validate_regex(apikey) diff --git a/apprise/plugins/NotifySinch.py b/apprise/plugins/NotifySinch.py index f911cdb7..802ed368 100644 --- a/apprise/plugins/NotifySinch.py +++ b/apprise/plugins/NotifySinch.py @@ -169,7 +169,7 @@ class NotifySinch(NotifyBase): """ Initialize Sinch Object """ - super(NotifySinch, self).__init__(**kwargs) + super().__init__(**kwargs) # The Account SID associated with the account self.service_plan_id = validate_regex( diff --git a/apprise/plugins/NotifySlack.py b/apprise/plugins/NotifySlack.py index 3b0c733a..2c895f34 100644 --- a/apprise/plugins/NotifySlack.py +++ b/apprise/plugins/NotifySlack.py @@ -278,7 +278,7 @@ class NotifySlack(NotifyBase): """ Initialize Slack Object """ - super(NotifySlack, self).__init__(**kwargs) + super().__init__(**kwargs) # Setup our mode self.mode = SlackMode.BOT if access_token else SlackMode.WEBHOOK diff --git a/apprise/plugins/NotifySparkPost.py b/apprise/plugins/NotifySparkPost.py index 93ce84d5..c90adb8a 100644 --- a/apprise/plugins/NotifySparkPost.py +++ b/apprise/plugins/NotifySparkPost.py @@ -224,7 +224,7 @@ class NotifySparkPost(NotifyBase): """ Initialize SparkPost Object """ - super(NotifySparkPost, self).__init__(**kwargs) + super().__init__(**kwargs) # API Key (associated with project) self.apikey = validate_regex(apikey) diff --git a/apprise/plugins/NotifySpontit.py b/apprise/plugins/NotifySpontit.py index 59c708bd..d1bfdc56 100644 --- a/apprise/plugins/NotifySpontit.py +++ b/apprise/plugins/NotifySpontit.py @@ -148,7 +148,7 @@ class NotifySpontit(NotifyBase): """ Initialize Spontit Object """ - super(NotifySpontit, self).__init__(**kwargs) + super().__init__(**kwargs) # User ID (associated with project) user = validate_regex( diff --git a/apprise/plugins/NotifyStreamlabs.py b/apprise/plugins/NotifyStreamlabs.py index e4217151..ae2371ea 100644 --- a/apprise/plugins/NotifyStreamlabs.py +++ b/apprise/plugins/NotifyStreamlabs.py @@ -183,7 +183,7 @@ class NotifyStreamlabs(NotifyBase): Initialize Streamlabs Object """ - super(NotifyStreamlabs, self).__init__(**kwargs) + super().__init__(**kwargs) # access token is generated by user # using https://streamlabs.com/api/v1.0/token diff --git a/apprise/plugins/NotifySyslog.py b/apprise/plugins/NotifySyslog.py index 20d20b19..25be43a6 100644 --- a/apprise/plugins/NotifySyslog.py +++ b/apprise/plugins/NotifySyslog.py @@ -199,7 +199,7 @@ class NotifySyslog(NotifyBase): """ Initialize Syslog Object """ - super(NotifySyslog, self).__init__(**kwargs) + super().__init__(**kwargs) if facility: try: diff --git a/apprise/plugins/NotifyTechulusPush.py b/apprise/plugins/NotifyTechulusPush.py index 5dcb33e5..dbef9880 100644 --- a/apprise/plugins/NotifyTechulusPush.py +++ b/apprise/plugins/NotifyTechulusPush.py @@ -104,7 +104,7 @@ class NotifyTechulusPush(NotifyBase): """ Initialize Techulus Push Object """ - super(NotifyTechulusPush, self).__init__(**kwargs) + super().__init__(**kwargs) # The apikey associated with the account self.apikey = validate_regex( diff --git a/apprise/plugins/NotifyTelegram.py b/apprise/plugins/NotifyTelegram.py index 1317d7ca..0d8fbd0a 100644 --- a/apprise/plugins/NotifyTelegram.py +++ b/apprise/plugins/NotifyTelegram.py @@ -315,7 +315,7 @@ class NotifyTelegram(NotifyBase): """ Initialize Telegram Object """ - super(NotifyTelegram, self).__init__(**kwargs) + super().__init__(**kwargs) self.bot_token = validate_regex( bot_token, *self.template_tokens['bot_token']['regex'], diff --git a/apprise/plugins/NotifyTwilio.py b/apprise/plugins/NotifyTwilio.py index 883cc50b..3af118a9 100644 --- a/apprise/plugins/NotifyTwilio.py +++ b/apprise/plugins/NotifyTwilio.py @@ -163,7 +163,7 @@ class NotifyTwilio(NotifyBase): """ Initialize Twilio Object """ - super(NotifyTwilio, self).__init__(**kwargs) + super().__init__(**kwargs) # The Account SID associated with the account self.account_sid = validate_regex( diff --git a/apprise/plugins/NotifyTwist.py b/apprise/plugins/NotifyTwist.py index d1120868..9f8415c3 100644 --- a/apprise/plugins/NotifyTwist.py +++ b/apprise/plugins/NotifyTwist.py @@ -131,7 +131,7 @@ class NotifyTwist(NotifyBase): """ Initialize Notify Twist Object """ - super(NotifyTwist, self).__init__(**kwargs) + super().__init__(**kwargs) # Initialize channels list self.channels = set() diff --git a/apprise/plugins/NotifyTwitter.py b/apprise/plugins/NotifyTwitter.py index f26d30fa..cc68bee6 100644 --- a/apprise/plugins/NotifyTwitter.py +++ b/apprise/plugins/NotifyTwitter.py @@ -194,7 +194,7 @@ class NotifyTwitter(NotifyBase): Initialize Twitter Object """ - super(NotifyTwitter, self).__init__(**kwargs) + super().__init__(**kwargs) self.ckey = validate_regex(ckey) if not self.ckey: diff --git a/apprise/plugins/NotifyVonage.py b/apprise/plugins/NotifyVonage.py index 1dea3157..bf5713ca 100644 --- a/apprise/plugins/NotifyVonage.py +++ b/apprise/plugins/NotifyVonage.py @@ -142,7 +142,7 @@ class NotifyVonage(NotifyBase): """ Initialize Vonage Object """ - super(NotifyVonage, self).__init__(**kwargs) + super().__init__(**kwargs) # API Key (associated with project) self.apikey = validate_regex( diff --git a/apprise/plugins/NotifyWebexTeams.py b/apprise/plugins/NotifyWebexTeams.py index 5e802133..3f88f812 100644 --- a/apprise/plugins/NotifyWebexTeams.py +++ b/apprise/plugins/NotifyWebexTeams.py @@ -125,7 +125,7 @@ class NotifyWebexTeams(NotifyBase): """ Initialize Webex Teams Object """ - super(NotifyWebexTeams, self).__init__(**kwargs) + super().__init__(**kwargs) # The token associated with the account self.token = validate_regex( diff --git a/apprise/plugins/NotifyWindows.py b/apprise/plugins/NotifyWindows.py index 1c599e14..99f7390c 100644 --- a/apprise/plugins/NotifyWindows.py +++ b/apprise/plugins/NotifyWindows.py @@ -113,7 +113,7 @@ class NotifyWindows(NotifyBase): Initialize Windows Object """ - super(NotifyWindows, self).__init__(**kwargs) + super().__init__(**kwargs) # Number of seconds to display notification for self.duration = self.default_popup_duration_sec \ diff --git a/apprise/plugins/NotifyXBMC.py b/apprise/plugins/NotifyXBMC.py index 22f4219c..6c2a6d49 100644 --- a/apprise/plugins/NotifyXBMC.py +++ b/apprise/plugins/NotifyXBMC.py @@ -131,7 +131,7 @@ class NotifyXBMC(NotifyBase): """ Initialize XBMC/KODI Object """ - super(NotifyXBMC, self).__init__(**kwargs) + super().__init__(**kwargs) # Number of seconds to display notification for self.duration = self.template_args['duration']['default'] \ diff --git a/apprise/plugins/NotifyXML.py b/apprise/plugins/NotifyXML.py index 9fea49da..79086c72 100644 --- a/apprise/plugins/NotifyXML.py +++ b/apprise/plugins/NotifyXML.py @@ -140,7 +140,7 @@ class NotifyXML(NotifyBase): additionally include as part of the server headers to post with """ - super(NotifyXML, self).__init__(**kwargs) + super().__init__(**kwargs) self.payload = """