contrib/import-checker.py
changeset 44440 4cabeea6d214
parent 43959 303576116ac1
child 45849 c102b704edb5
--- a/contrib/import-checker.py	Tue Feb 25 20:27:39 2020 -0500
+++ b/contrib/import-checker.py	Sat Sep 07 14:50:39 2019 +0200
@@ -392,9 +392,10 @@
                     modnotfound = True
                     continue
                 yield found[1]
-            if modnotfound:
+            if modnotfound and dottedpath != modulename:
                 # "dottedpath" is a package, but imported because of non-module
                 # lookup
+                # specifically allow "from . import foo" from __init__.py
                 yield dottedpath