summaryrefslogtreecommitdiff
path: root/src/mailman/app/templates.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/app/templates.py')
-rw-r--r--src/mailman/app/templates.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/app/templates.py b/src/mailman/app/templates.py
index d0c278e3a..742f8c0b2 100644
--- a/src/mailman/app/templates.py
+++ b/src/mailman/app/templates.py
@@ -55,7 +55,7 @@ class MailmanHandler(BaseHandler):
assert parsed.scheme == 'mailman'
# The path can contain one, two, or three components. Since no empty
# path components are legal, filter them out.
- parts = filter(None, parsed.path.split('/'))
+ parts = [p for p in parsed.path.split('/') if p is not None]
if len(parts) == 0:
raise URLError('No template specified')
elif len(parts) == 1: