From 19beeacc7e42d026480e16c69e0332082229f341 Mon Sep 17 00:00:00 2001 From: Cris Ewing Date: Mon, 14 May 2018 17:18:56 -0400 Subject: Sets, when you absolutely, positively want those extra microseconds back --- pyramid/httpexceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3