Commits

holger krekel  committed fe45932

fix python33 path handling errors

  • Participants
  • Parent commits 56d95d9
  • Tags 1.4.11

Comments (0)

Files changed (2)

   unicodeencode/decode problems, amend according test
 - introduce py.builtin.text and py.builtin.bytes
   to point to respective str/unicode (py2) and bytes/str (py3) types
+- fix error handling on win32/py33 for ENODIR 
 
 Changes between 1.4.9 and 1.4.10
 ==================================================

File py/_error.py

     17: errno.EEXIST,
     13: errno.EBUSY, # empty cd drive, but ENOMEDIUM seems unavailiable
     22: errno.ENOTDIR,
+    20: errno.ENOTDIR,
     267: errno.ENOTDIR,
     5: errno.EACCES,  # anything better?
 }
             return func(*args, **kwargs)
         except self.Error:
             raise
-        except EnvironmentError:
+        except (OSError, EnvironmentError):
             cls, value, tb = sys.exc_info()
             if not hasattr(value, 'errno'):
                 raise
                     raise value
             raise cls("%s%r" % (func.__name__, args))
             __tracebackhide__ = True
+            
 
 error = ErrorMaker()