Skip to content

Commit 5773ea7

Browse files
committed
Minor code cleanup
1 parent 39d4c8f commit 5773ea7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

astroquery/simbad/core.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
from astropy.table import Table
1818
import astropy.io.votable as votable
1919

20-
from ..query import BaseQuery
21-
from ..utils import commons
22-
from ..exceptions import TableParseError, LargeQueryWarning
20+
from astroquery.query import BaseQuery
21+
from astroquery.utils import commons, async_to_sync
22+
from astroquery.exceptions import TableParseError, LargeQueryWarning
2323
from . import conf
24-
from ..utils.process_asyncs import async_to_sync
24+
2525

2626
__all__ = ['Simbad', 'SimbadClass', 'SimbadBaseQuery']
2727

@@ -183,7 +183,7 @@ def __init__(self, txt, verbose=False, pedantic=False):
183183
self.__table = None
184184
if not verbose:
185185
commons.suppress_vo_warnings()
186-
super(SimbadVOTableResult, self).__init__(txt, verbose=verbose)
186+
super().__init__(txt, verbose=verbose)
187187

188188
@property
189189
def table(self):
@@ -232,7 +232,7 @@ class SimbadBaseQuery(BaseQuery):
232232
"""
233233
def _request(self, *args, **kwargs):
234234
try:
235-
response = super(SimbadBaseQuery, self)._request(*args, **kwargs)
235+
response = super()._request(*args, **kwargs)
236236
except requests.exceptions.ConnectionError as ex:
237237
if 'Errno 61' in str(ex):
238238
extratext = ("\n\n"
@@ -302,7 +302,7 @@ class SimbadClass(SimbadBaseQuery):
302302
_VOTABLE_FIELDS = ['main_id', 'coordinates']
303303

304304
def __init__(self):
305-
super(SimbadClass, self).__init__()
305+
super().__init__()
306306
self._VOTABLE_FIELDS = copy.copy(self._VOTABLE_FIELDS)
307307

308308
def list_wildcards(self):

0 commit comments

Comments
 (0)