|
17 | 17 | from astropy.table import Table |
18 | 18 | import astropy.io.votable as votable |
19 | 19 |
|
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 |
23 | 23 | from . import conf |
24 | | -from ..utils.process_asyncs import async_to_sync |
| 24 | + |
25 | 25 |
|
26 | 26 | __all__ = ['Simbad', 'SimbadClass', 'SimbadBaseQuery'] |
27 | 27 |
|
@@ -183,7 +183,7 @@ def __init__(self, txt, verbose=False, pedantic=False): |
183 | 183 | self.__table = None |
184 | 184 | if not verbose: |
185 | 185 | commons.suppress_vo_warnings() |
186 | | - super(SimbadVOTableResult, self).__init__(txt, verbose=verbose) |
| 186 | + super().__init__(txt, verbose=verbose) |
187 | 187 |
|
188 | 188 | @property |
189 | 189 | def table(self): |
@@ -232,7 +232,7 @@ class SimbadBaseQuery(BaseQuery): |
232 | 232 | """ |
233 | 233 | def _request(self, *args, **kwargs): |
234 | 234 | try: |
235 | | - response = super(SimbadBaseQuery, self)._request(*args, **kwargs) |
| 235 | + response = super()._request(*args, **kwargs) |
236 | 236 | except requests.exceptions.ConnectionError as ex: |
237 | 237 | if 'Errno 61' in str(ex): |
238 | 238 | extratext = ("\n\n" |
@@ -302,7 +302,7 @@ class SimbadClass(SimbadBaseQuery): |
302 | 302 | _VOTABLE_FIELDS = ['main_id', 'coordinates'] |
303 | 303 |
|
304 | 304 | def __init__(self): |
305 | | - super(SimbadClass, self).__init__() |
| 305 | + super().__init__() |
306 | 306 | self._VOTABLE_FIELDS = copy.copy(self._VOTABLE_FIELDS) |
307 | 307 |
|
308 | 308 | def list_wildcards(self): |
|
0 commit comments