From c61d4711e741040ca7b31d2d2bdeb4acfb86d0b4 Mon Sep 17 00:00:00 2001
From: Cris Ewing <cris@crisewing.com>
Date: Mon, 14 May 2018 23:29:53 +0200
Subject: [PATCH] Sets, when you absolutely, positively want those extra microseconds back

---
 pyramid/httpexceptions.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyramid/httpexceptions.py b/pyramid/httpexceptions.py
index ac4f577..7340804 100644
--- a/pyramid/httpexceptions.py
+++ b/pyramid/httpexceptions.py
@@ -1156,7 +1156,7 @@
     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)

--
Gitblit v1.9.3