Commit 6a989598 authored by Nicolas Ollinger's avatar Nicolas Ollinger

typo

parent 5c73c856
......@@ -16,8 +16,8 @@ import mimetypes
mimetypes.init()
mimetypes.add_type('application/pdf','.pdf')
def autotype(path, default=('application/pdf',)):
return (mimetypes.guess_type(path) or default)[0].split('/')
def autotype(path, default='application/pdf'):
return (mimetypes.guess_type(path) or (default,))[0].split('/')
with open('mailing.txt') as f:
sujet=f.readline().strip()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment