260f851
diff -ur astropy-4.2/astropy/coordinates/angle_utilities.py astropy-4.2.ply/astropy/coordinates/angle_utilities.py
260f851
--- astropy-4.2/astropy/coordinates/angle_utilities.py	2020-11-25 08:28:48.000000000 +0100
260f851
+++ astropy-4.2.ply/astropy/coordinates/angle_utilities.py	2021-02-15 23:22:45.935721825 +0100
260f851
@@ -88,7 +88,7 @@
260f851
 
260f851
     @classmethod
260f851
     def _make_parser(cls):
260f851
-        from astropy.extern.ply import lex, yacc
260f851
+        from ply import lex, yacc
260f851
 
260f851
         # List of token names.
260f851
         tokens = (
260f851
diff -ur astropy-4.2/astropy/units/format/cds.py astropy-4.2.ply/astropy/units/format/cds.py
260f851
--- astropy-4.2/astropy/units/format/cds.py	2020-11-25 08:28:48.000000000 +0100
260f851
+++ astropy-4.2.ply/astropy/units/format/cds.py	2021-02-15 23:22:29.190476911 +0100
260f851
@@ -82,7 +82,7 @@
260f851
     @classmethod
260f851
     def _make_lexer(cls):
260f851
 
260f851
-        from astropy.extern.ply import lex
260f851
+        from ply import lex
260f851
 
260f851
         tokens = cls._tokens
260f851
 
260f851
@@ -154,7 +154,7 @@
260f851
         <https://bitbucket.org/nxg/unity/>`_.
260f851
         """
260f851
 
260f851
-        from astropy.extern.ply import yacc
260f851
+        from ply import yacc
260f851
 
260f851
         tokens = cls._tokens
260f851
 
260f851
diff -ur astropy-4.2/astropy/units/format/generic.py astropy-4.2.ply/astropy/units/format/generic.py
260f851
--- astropy-4.2/astropy/units/format/generic.py	2020-11-25 08:28:48.000000000 +0100
260f851
+++ astropy-4.2.ply/astropy/units/format/generic.py	2021-02-15 23:21:39.375748327 +0100
260f851
@@ -118,7 +118,7 @@
260f851
 
260f851
     @classmethod
260f851
     def _make_lexer(cls):
260f851
-        from astropy.extern.ply import lex
260f851
+        from ply import lex
260f851
 
260f851
         tokens = cls._tokens
260f851
 
260f851
@@ -198,7 +198,7 @@
260f851
         formats, the only difference being the set of available unit
260f851
         strings.
260f851
         """
260f851
-        from astropy.extern.ply import yacc
260f851
+        from ply import yacc
260f851
 
260f851
         tokens = cls._tokens
260f851
 
260f851
diff -ur astropy-4.2/astropy/units/format/ogip.py astropy-4.2.ply/astropy/units/format/ogip.py
260f851
--- astropy-4.2/astropy/units/format/ogip.py	2020-11-25 08:28:48.000000000 +0100
260f851
+++ astropy-4.2.ply/astropy/units/format/ogip.py	2021-02-15 23:22:06.526145425 +0100
260f851
@@ -111,7 +111,7 @@
260f851
 
260f851
     @classmethod
260f851
     def _make_lexer(cls):
260f851
-        from astropy.extern.ply import lex
260f851
+        from ply import lex
260f851
 
260f851
         tokens = cls._tokens
260f851
 
260f851
@@ -186,7 +186,7 @@
260f851
         <https://bitbucket.org/nxg/unity/>`_.
260f851
         """
260f851
 
260f851
-        from astropy.extern.ply import yacc
260f851
+        from ply import yacc
260f851
 
260f851
         tokens = cls._tokens
260f851