changeset 14985:dbf91976f900

windows: eliminate win32 wildcard import
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 29 Jul 2011 00:39:27 +0200
parents cc2c22511707
children 70e11de6964d
files mercurial/windows.py tests/test-check-pyflakes.t
diffstat 2 files changed, 15 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/windows.py	Fri Jul 29 17:27:38 2011 -0500
+++ b/mercurial/windows.py	Fri Jul 29 00:39:27 2011 +0200
@@ -9,6 +9,21 @@
 import osutil
 import errno, msvcrt, os, re, sys
 
+from win32 import executablepath
+from win32 import getuser
+from win32 import hidewindow
+from win32 import lookupreg
+from win32 import makedir
+from win32 import nlinks
+from win32 import oslink
+from win32 import samedevice
+from win32 import samefile
+from win32 import setsignalhandler
+from win32 import spawndetached
+from win32 import termwidth
+from win32 import testpid
+from win32 import unlink
+
 nulldev = 'NUL:'
 umask = 002
 
@@ -285,8 +300,6 @@
 def isexec(f):
     return False
 
-from win32 import *
-
 class cachestat(object):
     def __init__(self, path):
         pass
--- a/tests/test-check-pyflakes.t	Fri Jul 29 17:27:38 2011 -0500
+++ b/tests/test-check-pyflakes.t	Fri Jul 29 00:39:27 2011 +0200
@@ -7,6 +7,5 @@
   mercurial/commands.py:*: 'mpatch' imported but unused (glob)
   mercurial/commands.py:*: 'osutil' imported but unused (glob)
   hgext/inotify/linux/__init__.py:*: 'from _inotify import *' used; unable to detect undefined names (glob)
-  mercurial/windows.py:*: 'from win32 import *' used; unable to detect undefined names (glob)