summaryrefslogtreecommitdiff
path: root/Mailman/htmlformat.py
diff options
context:
space:
mode:
authorbwarsaw2006-04-17 13:10:09 +0000
committerbwarsaw2006-04-17 13:10:09 +0000
commit953d9bff95f70b66b1b6c04340959185a11c3d10 (patch)
treebd6aa3c6d30bcace2d628da71bc121f751ff1be2 /Mailman/htmlformat.py
parent0ed815a216c7bb6f820cfdf99fc8d31bcfd19fc0 (diff)
downloadmailman-953d9bff95f70b66b1b6c04340959185a11c3d10.tar.gz
mailman-953d9bff95f70b66b1b6c04340959185a11c3d10.tar.zst
mailman-953d9bff95f70b66b1b6c04340959185a11c3d10.zip
Diffstat (limited to 'Mailman/htmlformat.py')
-rw-r--r--Mailman/htmlformat.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py
index 1fe44d885..0f005b1a0 100644
--- a/Mailman/htmlformat.py
+++ b/Mailman/htmlformat.py
@@ -27,8 +27,6 @@ for python and, recursively, for nested HTML formatting objects.
# shouldn't be adding their own newlines. The next object should.
-import types
-
from Mailman import mm_cfg
from Mailman import Utils
from Mailman.i18n import _
@@ -641,11 +639,11 @@ class SelectOptions:
self.multiple = multiple
# we convert any type to tuple, commas are needed
if not multiple:
- if type(selected) == types.IntType:
+ if isinstance(selected, int):
self.selected = (selected,)
- elif type(selected) == types.TupleType:
+ elif isinstance(selected, tuple):
self.selected = (selected[0],)
- elif type(selected) == types.ListType:
+ elif isinstance(selected, list):
self.selected = (selected[0],)
else:
self.selected = (0,)