fileutil: change WindowsError to OSError in abspath_expanduser_unicode, because Windo...
authordavid-sarah <david-sarah@jacaranda.org>
Sun, 25 Jul 2010 22:26:03 +0000 (15:26 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Sun, 25 Jul 2010 22:26:03 +0000 (15:26 -0700)
src/allmydata/util/fileutil.py

index a6b59bc8c79dc407e3e0b08a6484e8c908bd8ab9..5a5179c13bee1233ae8f0112904d4826755b6863 100644 (file)
@@ -295,7 +295,7 @@ def abspath_expanduser_unicode(path):
         # e.g. "\\". See <http://bugs.python.org/issue1669539>.
         try:
             path = _getfullpathname(path or u".")
-        except WindowsError:
+        except OSError:
             pass
 
     if not os.path.isabs(path):