summaryrefslogtreecommitdiff
path: root/src/mailman/pipeline/scrubber.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-05-15 18:57:40 -0400
committerBarry Warsaw2009-05-15 18:57:40 -0400
commitad07de3dcdbf0ef11b5b324b9521b748da207fc7 (patch)
tree98116b50d009464c247f490ca200939eaa3bc73f /src/mailman/pipeline/scrubber.py
parent855d7188024f67570a946665f5ba19522fbdb48a (diff)
downloadmailman-ad07de3dcdbf0ef11b5b324b9521b748da207fc7.tar.gz
mailman-ad07de3dcdbf0ef11b5b324b9521b748da207fc7.tar.zst
mailman-ad07de3dcdbf0ef11b5b324b9521b748da207fc7.zip
Diffstat (limited to 'src/mailman/pipeline/scrubber.py')
-rw-r--r--src/mailman/pipeline/scrubber.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/pipeline/scrubber.py b/src/mailman/pipeline/scrubber.py
index 115bc77d1..18d50c7a5 100644
--- a/src/mailman/pipeline/scrubber.py
+++ b/src/mailman/pipeline/scrubber.py
@@ -487,9 +487,9 @@ def save_attachment(mlist, msg, dir, filter_html=True):
fp.close()
# Now calculate the url to the list's archive.
scrubber_path = config.scrubber.archive_scrubber
- package_name, module_name = scrubber_path.rsplit('.', 1)
- __import__(package_name)
- baseurl = getattr(sys.modules[package_name], module_name).list_url(mlist)
+ package, dot, module_name = scrubber_path.rpartition('.')
+ __import__(package)
+ baseurl = getattr(sys.modules[package], module_name).list_url(mlist)
if not baseurl.endswith('/'):
baseurl += '/'
# Trailing space will definitely be a problem with format=flowed.