1. Mariano Mara
  2. webob-screwup-backup

Commits

pjenvey  committed 226154e

more explicitly check for old style exceptions. for pypy compat; its exceptions
are new style even though it's 2.4

  • Participants
  • Parent commits 81543f1
  • Branches default

Comments (0)

Files changed (1)

File webob/exc.py

View file
  • Ignore whitespace
     
     exception = property(exception)
 
-    if sys.version_info < (2, 5):
+    # for old style exceptions
+    if not issubclass(Exception, object):
         def __getattr__(self, attr):
             if not attr.startswith('_'):
                 return getattr(self.wsgi_response, attr)