We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 535ddfc commit e5563adCopy full SHA for e5563ad
astroquery/simbad/utils.py
@@ -1,10 +1,16 @@
1
"""Contains utility functions to support legacy Simbad interface."""
2
3
from collections import deque
4
+from packaging import version
5
import re
6
7
+from astropy import __version__ as astropy_version
8
+
9
from astropy.coordinates import SkyCoord, Angle
-from astropy.utils.parsing import lex, yacc
10
+if version.parse(astropy_version) >= version.parse("4.3"):
11
+ from astropy.utils.parsing import lex, yacc
12
+else:
13
+ from astropy.extern.ply import lex, yacc
14
from astropy.utils import classproperty
15
16
0 commit comments