Skip to content

Commit 1dc3b73

Browse files
committed
Cleaning up super() calls
Using this darling: gsed -i -e 's|\(.*super(\)\(.*)\.\)\(.*)\)|\1).\3|g'
1 parent de425fc commit 1dc3b73

File tree

36 files changed

+40
-40
lines changed

36 files changed

+40
-40
lines changed

astroquery/alfalfa/tests/test_alfalfa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
class MockResponseAlfalfa(MockResponse):
1616

1717
def __init__(self, content, **kwargs):
18-
super(MockResponseAlfalfa, self).__init__(content, **kwargs)
18+
super().__init__(content, **kwargs)
1919

2020
def iter_lines(self):
2121
for line in self.text.split("\n"):

astroquery/alma/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class AlmaClass(QueryWithLogin):
193193

194194
def __init__(self):
195195
# sia service does not need disambiguation but tap does
196-
super(AlmaClass, self).__init__()
196+
super().__init__()
197197
self._sia = None
198198
self._tap = None
199199
self._datalink = None

astroquery/astrometry_net/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def show_allowed_settings(self):
104104

105105
def __init__(self):
106106
""" Show a warning message if the API key is not in the configuration file. """
107-
super(AstrometryNetClass, self).__init__()
107+
super().__init__()
108108
if not conf.api_key:
109109
log.warning("Astrometry.net API key not found in configuration file")
110110
log.warning("You need to manually edit the configuration file and add it")

astroquery/atomic/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AtomicLineListClass(BaseQuery):
2626
TIMEOUT = conf.timeout
2727

2828
def __init__(self):
29-
super(AtomicLineListClass, self).__init__()
29+
super().__init__()
3030
self.__default_form_values = None
3131

3232
def query_object(self, *, wavelength_range=None, wavelength_type=None, wavelength_accuracy=None, element_spectrum=None,

astroquery/besancon/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class BesanconClass(BaseQuery):
8787
result_re = re.compile(r"[0-9]{10}\.[0-9]{6}\.resu")
8888

8989
def __init__(self, email=None):
90-
super(BesanconClass, self).__init__()
90+
super().__init__()
9191
self.email = email
9292

9393
def get_besancon_model_file(self, filename, verbose=True, timeout=5.0):

astroquery/besancon/tests/test_besancon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@ def test_default_params():
105105
class MockResponseBesancon(MockResponse):
106106

107107
def __init__(self, content=None, url=None, headers={}, **kwargs):
108-
super(MockResponseBesancon, self).__init__(content)
108+
super().__init__(content)
109109
self.raw = url # StringIO.StringIO(url)
110110
self.headers = headers

astroquery/cadc/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(self, url=None, auth_session=None):
8888
Cadc object
8989
"""
9090

91-
super(CadcClass, self).__init__()
91+
super().__init__()
9292
self.baseurl = url
9393
# _auth_session contains the credentials that are used by both
9494
# the cadc tap and cadc datalink services

astroquery/casda/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class CasdaClass(BaseQuery):
5050
_uws_ns = {'uws': 'http://www.ivoa.net/xml/UWS/v1.0'}
5151

5252
def __init__(self, user=None, password=None):
53-
super(CasdaClass, self).__init__()
53+
super().__init__()
5454
if user is None:
5555
self._authenticated = False
5656
else:

astroquery/cds/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class CdsClass(BaseQuery):
5252
TIMEOUT = conf.timeout
5353

5454
def __init__(self):
55-
super(CdsClass, self).__init__()
55+
super().__init__()
5656
self.path_moc_file = None
5757
self.return_moc = False
5858

astroquery/cosmosim/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class CosmoSimClass(QueryWithLogin):
4040
USERNAME = conf.username
4141

4242
def __init__(self):
43-
super(CosmoSimClass, self).__init__()
43+
super().__init__()
4444

4545
def _login(self, username=None, password=None, store_password=False,
4646
reenter_password=False):

0 commit comments

Comments
 (0)