1 new commit in py:

https://bitbucket.org/hpk42/py/changeset/fe4593263efa/
changeset:   fe4593263efa
user:        hpk42
date:        2012-10-25 13:14:31
summary:     fix python33 path handling errors
affected #:  2 files

diff -r 56d95d9647e37a55ecdbc799f8176b62f2417706 -r 
fe4593263efa10ea7ba014db6e3379e0b82368a2 CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -9,6 +9,7 @@
   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
 ==================================================


diff -r 56d95d9647e37a55ecdbc799f8176b62f2417706 -r 
fe4593263efa10ea7ba014db6e3379e0b82368a2 py/_error.py
--- a/py/_error.py
+++ b/py/_error.py
@@ -25,6 +25,7 @@
     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?
 }
@@ -63,7 +64,7 @@
             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
@@ -82,5 +83,6 @@
                     raise value
             raise cls("%s%r" % (func.__name__, args))
             __tracebackhide__ = True
+            
 
 error = ErrorMaker()

Repository URL: https://bitbucket.org/hpk42/py/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
py-svn mailing list
py-svn@codespeak.net
http://codespeak.net/mailman/listinfo/py-svn

Reply via email to