diff options
| author | Barry Warsaw | 2009-05-15 18:57:40 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2009-05-15 18:57:40 -0400 |
| commit | ad07de3dcdbf0ef11b5b324b9521b748da207fc7 (patch) | |
| tree | 98116b50d009464c247f490ca200939eaa3bc73f /src/mailman/pipeline/scrubber.py | |
| parent | 855d7188024f67570a946665f5ba19522fbdb48a (diff) | |
| download | mailman-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.py | 6 |
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. |
