windows: import WinIOError from win32 module (issue1707)
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Wed, 24 Jun 2009 12:03:53 +0200
changeset 8930 ae275ad46bd0
parent 8929 cb05e2a00291
child 8931 4c99eafb101e
windows: import WinIOError from win32 module (issue1707) Quick fix pending further refactoring of windows error handling.
mercurial/windows.py
--- a/mercurial/windows.py	Wed Jun 24 12:03:13 2009 +0200
+++ b/mercurial/windows.py	Wed Jun 24 12:03:53 2009 +0200
@@ -8,6 +8,7 @@
 from i18n import _
 import osutil, error
 import errno, msvcrt, os, re, sys
+from mercurial import win32
 
 nulldev = 'NUL:'
 umask = 002
@@ -17,7 +18,7 @@
     try:
         return osutil.posixfile(name, mode, buffering)
     except WindowsError, err:
-        raise WinIOError(err)
+        raise win32.WinIOError(err)
 posixfile.__doc__ = osutil.posixfile.__doc__
 
 class winstdout(object):