diff options
| author | Cris Ewing <cris@crisewing.com> | 2018-05-14 17:18:56 -0400 |
|---|---|---|
| committer | Cris Ewing <cris@crisewing.com> | 2018-05-14 17:18:56 -0400 |
| commit | 19beeacc7e42d026480e16c69e0332082229f341 (patch) | |
| tree | dcbeea296067e32cdf85b2640fbcfed7850f421e | |
| parent | 5a99ad864161750bd05ddf1df368701d64c0a396 (diff) | |
| download | pyramid-19beeacc7e42d026480e16c69e0332082229f341.tar.gz pyramid-19beeacc7e42d026480e16c69e0332082229f341.tar.bz2 pyramid-19beeacc7e42d026480e16c69e0332082229f341.zip | |
Sets, when you absolutely, positively want those extra microseconds back
| -rw-r--r-- | pyramid/httpexceptions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyramid/httpexceptions.py b/pyramid/httpexceptions.py index ac4f57738..734080434 100644 --- a/pyramid/httpexceptions.py +++ b/pyramid/httpexceptions.py @@ -1156,7 +1156,7 @@ for name, value in list(globals().items()): if ( isinstance(value, class_types) and issubclass(value, HTTPException) and - value not in [HTTPClientError, HTTPServerError] and + value not in {HTTPClientError, HTTPServerError} and not name.startswith('_') ): code = getattr(value, 'code', None) |
