Mercurial > public > mercurial-scm > hg
diff mercurial/windows.py @ 8930:ae275ad46bd0
windows: import WinIOError from win32 module (issue1707)
Quick fix pending further refactoring of windows error handling.
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 24 Jun 2009 12:03:53 +0200 |
parents | c5f36402daad |
children | 835a51e63c5b |
line wrap: on
line diff
--- 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):