changeset 15016:871c77e78f5d

windows: fix pyflakes warning on unused imports This is ugly, but only marginally uglier than before, and it avoids hacking/disabling our pyflakes test
author Matt Mackall <mpm@selenic.com>
date Wed, 03 Aug 2011 16:41:14 -0500
parents ee6988aea74e
children f4522df38c65
files mercurial/windows.py
diffstat 1 files changed, 15 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/windows.py	Tue Aug 02 17:43:20 2011 -0500
+++ b/mercurial/windows.py	Wed Aug 03 16:41:14 2011 -0500
@@ -9,20 +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
+import win32
+executablepath = win32.executablepath
+getuser = win32.getuser
+hidewindow = win32.hidewindow
+lookupreg = win32.lookupreg
+makedir = win32.makedir
+nlinks = win32.nlinks
+oslink = win32.oslink
+samedevice = win32.samedevice
+samefile = win32.samefile
+setsignalhandler = win32.setsignalhandler
+spawndetached = win32.spawndetached
+termwidth = win32.termwidth
+testpid = win32.testpid
+unlink = win32.unlink
 
 nulldev = 'NUL:'
 umask = 002