diff options
Diffstat (limited to 'loader/lib/parser.py')
-rw-r--r-- | loader/lib/parser.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/loader/lib/parser.py b/loader/lib/parser.py index 6a56855..7b2d2a6 100644 --- a/loader/lib/parser.py +++ b/loader/lib/parser.py @@ -371,10 +371,6 @@ class ArchivesParser(object): hdr = hdr.replace("\n\t","") try: return " ".join([unicode(s, charset and self.clean_charset(charset) or 'us-ascii', errors='ignore') for s,charset in decode_header(hdr)]) - (s, charset) = decode_header(hdr)[0] - if charset: - return unicode(s, self.clean_charset(charset), errors='ignore') - return unicode(s, 'us-ascii', errors='ignore') except HeaderParseError, e: # Parser error is typically someone specifying an encoding, # but then not actually using that encoding. We'll do the best |