windows: import WinIOError from win32 module (
issue1707)
Quick fix pending further refactoring of windows error handling.
--- 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):