diff options
author | Chris McDonough <chrism@plope.com> | 2011-03-20 23:25:37 -0400 |
---|---|---|
committer | Chris McDonough <chrism@plope.com> | 2011-03-20 23:25:37 -0400 |
commit | d8176e7279e19ab3e618056555a05d710bb161d4 (patch) | |
tree | 43717841fd1326d22a4aaea2d1a17c1c0ce72fcb /webob/exc.py | |
parent | 1c4912af221e89ecf117154e2708f58984287ad8 (diff) | |
parent | c3f021fbf2fd027b0778ca9dadc79ae7b2a5394b (diff) | |
download | webob-tests.pycon2011.tar.gz |
merge from headtests.pycon2011
Diffstat (limited to 'webob/exc.py')
-rw-r--r-- | webob/exc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webob/exc.py b/webob/exc.py index c27f6cd..b072b8c 100644 --- a/webob/exc.py +++ b/webob/exc.py @@ -209,7 +209,7 @@ class HTTPException(Exception): exception = property(exception) # for old style exceptions - if not newstyle_exceptions: + if not newstyle_exceptions: #pragma NO COVERAGE def __getattr__(self, attr): if not attr.startswith('_'): return getattr(self.wsgi_response, attr) @@ -1062,10 +1062,10 @@ class HTTPExceptionMiddleware(object): try: from paste import httpexceptions -except ImportError: +except ImportError: # pragma: no cover # Without Paste we don't need to do this fixup pass -else: +else: # pragma: no cover for name in dir(httpexceptions): obj = globals().get(name) if (obj and isinstance(obj, type) and issubclass(obj, HTTPException) |