changeset 6107:dc5ef93e8609

stop using MoinMoin.support.HeaderFixed
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 06 Sep 2016 02:04:16 +0200
parents b59ee217581c
children c788f228845e
files MoinMoin/mail/mailimport.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/mail/mailimport.py	Tue Sep 06 01:52:01 2016 +0200
+++ b/MoinMoin/mail/mailimport.py	Tue Sep 06 02:04:16 2016 +0200
@@ -12,13 +12,12 @@
 import sys, re, time
 import email
 from email.Utils import getaddresses, parsedate_tz, mktime_tz
+from email.Header import decode_header
 
 from MoinMoin import wikiutil, user
 from MoinMoin.action.AttachFile import add_attachment, AttachmentAlreadyExists
 from MoinMoin.Page import Page
 from MoinMoin.PageEditor import PageEditor
-# python, at least up to 2.4, ships a broken parser for headers
-from MoinMoin.support.HeaderFixed import decode_header
 
 infile = sys.stdin