summaryrefslogtreecommitdiff
path: root/Mailman/Archiver.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Archiver.py')
-rw-r--r--Mailman/Archiver.py34
1 files changed, 16 insertions, 18 deletions
diff --git a/Mailman/Archiver.py b/Mailman/Archiver.py
index f15acfb35..b4d9e4fdf 100644
--- a/Mailman/Archiver.py
+++ b/Mailman/Archiver.py
@@ -120,24 +120,22 @@ class Archiver:
if os.fork():
return
try:
- try:
- from cStringIO import StringIO
- except ImportError:
- from StringIO import StringIO
- txt = msg.unixfrom
- for h in msg.headers:
- txt = txt + h
- if msg.body[0] != '\n':
- txt = txt + "\n"
- txt = txt + msg.body
- f = StringIO(txt)
- import HyperArch
- h = HyperArch.HyperArchive(self)
- h.processUnixMailbox(f, HyperArch.Article)
- h.close()
- f.close()
- finally:
- os._exit(0)
+ from cStringIO import StringIO
+ except ImportError:
+ from StringIO import StringIO
+ txt = msg.unixfrom
+ for h in msg.headers:
+ txt = txt + h
+ if msg.body[0] != '\n':
+ txt = txt + "\n"
+ txt = txt + msg.body
+ f = StringIO(txt)
+ import HyperArch
+ h = HyperArch.HyperArchive(self)
+ h.processUnixMailbox(f, HyperArch.Article)
+ h.close()
+ f.close()
+ os._exit(0)
def ArchiveFileName(self):