Commits

holger krekel committed 2740d12

fix an issue crashing pypy

  • Participants
  • Parent commits 39007ef

Comments (0)

Files changed (4)

 - fix (pytest-) issue17 where python3 does not like "import *"
   leading to misrepresentation of import-errors in test modules
 
+- fix py.error.* attribute pypy access issue
+
 Changes between 1.3.4 and 1.4.0
 ==================================================
 
 
 (c) Holger Krekel and others, 2004-2010
 """
-__version__ = '1.4.1.dev2'
+__version__ = '1.4.1.dev3'
 
 from py import _apipkg
 
     },
 
 })
-
     _errno2class = {}
 
     def __getattr__(self, name):
+        if name[0] == "_":
+            raise AttributeError(name)
         eno = getattr(errno, name)
         cls = self._geterrnoclass(eno)
         setattr(self, name, cls)
         name='py',
         description='library with cross-python path, ini-parsing, io, code, log facilities',
         long_description = open('README.txt').read(),
-        version='1.4.1.dev2',
+        version='1.4.1.dev3',
         url='http://pylib.org',
         license='MIT license',
         platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],