summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCris Ewing <cris@crisewing.com>2018-05-14 17:18:56 -0400
committerCris Ewing <cris@crisewing.com>2018-05-14 17:18:56 -0400
commit19beeacc7e42d026480e16c69e0332082229f341 (patch)
treedcbeea296067e32cdf85b2640fbcfed7850f421e
parent5a99ad864161750bd05ddf1df368701d64c0a396 (diff)
downloadpyramid-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.py2
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)