summaryrefslogtreecommitdiff
path: root/paste/httpheaders.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-12-31 00:25:30 +0000
committerianb <devnull@localhost>2005-12-31 00:25:30 +0000
commit59ba5ee40b7da9f406a29f558ec21878dbf291b3 (patch)
tree6a1bcf4fc129b5354c30d8cb4c267e119b00300e /paste/httpheaders.py
parent20b15f721fa83e61d74b764e92ba61feb649aaa4 (diff)
downloadpaste-59ba5ee40b7da9f406a29f558ec21878dbf291b3.tar.gz
Create a __pudge_all__ variable that contains classes
Diffstat (limited to 'paste/httpheaders.py')
-rw-r--r--paste/httpheaders.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/paste/httpheaders.py b/paste/httpheaders.py
index f888cd0..2688558 100644
--- a/paste/httpheaders.py
+++ b/paste/httpheaders.py
@@ -990,4 +990,8 @@ for head in _headers.values():
headname = head.name.replace("-","_").upper()
locals()[headname] = head
__all__.append(headname)
-
+
+__pudge_all__ = __all__[:]
+for _name, _obj in globals().items():
+ if isinstance(_obj, type) and issubclass(_obj, HTTPHeader):
+ __pudge_all__.append(_name)