import-checker: force 'ctype.util' to stdlib module
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 22 Dec 2015 21:47:40 -0500
changeset 27508 b2226faead3f
parent 27507 a16489f9132d
child 27509 6ff90d618d72
import-checker: force 'ctype.util' to stdlib module Not having this caused warnings on Windows: mercurial/pure/osutil.py:12: stdlib import follows local import: os mercurial/pure/osutil.py:13: stdlib import follows local import: socket mercurial/pure/osutil.py:14: stdlib import follows local import: stat mercurial/pure/osutil.py:15: stdlib import follows local import: sys
contrib/import-checker.py
--- a/contrib/import-checker.py	Tue Dec 22 16:28:28 2015 -0800
+++ b/contrib/import-checker.py	Tue Dec 22 21:47:40 2015 -0500
@@ -180,7 +180,7 @@
     for m in ['msvcrt', '_winreg']:
         yield m
     # These get missed too
-    for m in 'ctypes', 'email', 'multiprocessing':
+    for m in 'ctypes', 'ctypes.util', 'email', 'multiprocessing':
         yield m
     yield 'builtins' # python3 only
     for m in 'fcntl', 'grp', 'pwd', 'termios':  # Unix only