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

typo

parent 5c73c856
...@@ -16,8 +16,8 @@ import mimetypes ...@@ -16,8 +16,8 @@ import mimetypes
mimetypes.init() mimetypes.init()
mimetypes.add_type('application/pdf','.pdf') mimetypes.add_type('application/pdf','.pdf')
def autotype(path, default=('application/pdf',)): def autotype(path, default='application/pdf'):
return (mimetypes.guess_type(path) or default)[0].split('/') return (mimetypes.guess_type(path) or (default,))[0].split('/')
with open('mailing.txt') as f: with open('mailing.txt') as f:
sujet=f.readline().strip() 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