Mercurial > hg
changeset 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 | cb05e2a00291 |
children | 4c99eafb101e |
files | mercurial/windows.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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):