Rename email.Parser to email.parser
Signed-off-by: Łukasz Żarnowiecki <dolohow@outlook.com> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
b5d9652bc9
commit
1fb8ba9631
@ -16,7 +16,7 @@
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
import email
|
||||
from email.Parser import Parser as MailParser
|
||||
from email.parser import Parser as MailParser
|
||||
|
||||
def get_message_date(content, header='Date'):
|
||||
"""Parses mail and returns resulting timestamp.
|
||||
|
Loading…
Reference in New Issue
Block a user