Mercurial > hg
changeset 27508:b2226faead3f
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
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 22 Dec 2015 21:47:40 -0500 |
parents | a16489f9132d |
children | 6ff90d618d72 |
files | contrib/import-checker.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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