mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 22:03:13 -07:00
Fix usages of super
for python 3
Removed unnecessary usages of `super` Used Python 3 `super` syntax
This commit is contained in:
parent
22a39bef4c
commit
5718efcbe9
2 changed files with 2 additions and 8 deletions
|
@ -11,9 +11,6 @@ import requests
|
|||
class PyMedusa(SickBeard):
|
||||
"""PyMedusa class."""
|
||||
|
||||
def __init__(self, sb_init):
|
||||
super(PyMedusa, self).__init__(sb_init)
|
||||
|
||||
def _create_url(self):
|
||||
route = f'{self.sb_init.web_root}/home/postprocess/processEpisode'
|
||||
return core.utils.common.create_url(
|
||||
|
@ -27,9 +24,6 @@ class PyMedusa(SickBeard):
|
|||
class PyMedusaApiV1(SickBeard):
|
||||
"""PyMedusa apiv1 class."""
|
||||
|
||||
def __init__(self, sb_init):
|
||||
super(PyMedusaApiV1, self).__init__(sb_init)
|
||||
|
||||
def _create_url(self):
|
||||
route = f'{self.sb_init.web_root}/api/{self.sb_init.apikey}/'
|
||||
return core.utils.common.create_url(
|
||||
|
@ -75,7 +69,7 @@ class PyMedusaApiV2(SickBeard):
|
|||
"""PyMedusa apiv2 class."""
|
||||
|
||||
def __init__(self, sb_init):
|
||||
super(PyMedusaApiV2, self).__init__(sb_init)
|
||||
super().__init__(sb_init)
|
||||
|
||||
# Check for an apikey, as this is required with using fork = medusa-apiv2
|
||||
if not sb_init.apikey:
|
||||
|
|
|
@ -89,7 +89,7 @@ class ConfigObj(configobj.ConfigObj, Section):
|
|||
def __init__(self, *args, **kw):
|
||||
if len(args) == 0:
|
||||
args = (core.CONFIG_FILE,)
|
||||
super(configobj.ConfigObj, self).__init__(*args, **kw)
|
||||
super().__init__(*args, **kw)
|
||||
self.interpolation = False
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue