durusmail: quixote-users: Use of sets.Set in http_response.py
Use of sets.Set in http_response.py
Use of sets.Set in http_response.py
Benjamin Dauvergne
2009-04-12
This module has been deprecated in python 2.6, it should be ok to
replace it by a frozenset instance.

--- http_response.py    2008-12-13 19:22:36.000000000 +0100
+++ /tmp/http_response.py       2009-04-12 03:29:02.000000000 +0200
@@ -4,7 +4,6 @@
 """

 import time
-from sets import Set
 try:
     import zlib
 except ImportError:
@@ -70,7 +69,7 @@
                 "\002"
                 "\377")

-_GZIP_EXCLUDE = Set(["application/pdf",
+_GZIP_EXCLUDE = frozenset(["application/pdf",
                      "application/zip",
                      "audio/mpeg",
                      "image/gif",
reply