projects
/
pgarchives.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
410dd9f
)
Fix silly overlook in imports
author
Magnus Hagander
<magnus@hagander.net>
Mon, 10 Apr 2017 12:19:01 +0000
(14:19 +0200)
committer
Magnus Hagander
<magnus@hagander.net>
Mon, 10 Apr 2017 12:19:01 +0000
(14:19 +0200)
loader/lib/parser.py
patch
|
blob
|
blame
|
history
diff --git
a/loader/lib/parser.py
b/loader/lib/parser.py
index d8c8cc3c288ee560cbcb0c8799feffeb9fc000f4..ac0b2f2bd34245e1e1a22da152d8dcc647c919e5 100644
(file)
--- a/
loader/lib/parser.py
+++ b/
loader/lib/parser.py
@@
-246,7
+246,7
@@
class ArchivesParser(object):
def _clean_filename_encoding(self, filename):
# If this is a header-encoded filename, start by decoding that
if filename.startswith('=?'):
- decoded, encoding =
email.header.
decode_header(filename)[0]
+ decoded, encoding = decode_header(filename)[0]
return unicode(decoded, encoding, errors='ignore')
# If it's already unicode, just return it