--- 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)