From: david-sarah Date: Sun, 25 Jul 2010 22:26:03 +0000 (-0700) Subject: fileutil: change WindowsError to OSError in abspath_expanduser_unicode, because Windo... X-Git-Tag: allmydata-tahoe-1.8.0b2~66 X-Git-Url: https://git.rkrishnan.org/specifications/components/com_hotproperty/flags?a=commitdiff_plain;h=013954c2659db71f9d9e3ad00ea5b8f4d20dd698;p=tahoe-lafs%2Ftahoe-lafs.git fileutil: change WindowsError to OSError in abspath_expanduser_unicode, because WindowsError might not exist. --- diff --git a/src/allmydata/util/fileutil.py b/src/allmydata/util/fileutil.py index a6b59bc8..5a5179c1 100644 --- a/src/allmydata/util/fileutil.py +++ b/src/allmydata/util/fileutil.py @@ -295,7 +295,7 @@ def abspath_expanduser_unicode(path): # e.g. "\\". See . try: path = _getfullpathname(path or u".") - except WindowsError: + except OSError: pass if not os.path.isabs(path):