summaryrefslogtreecommitdiff
path: root/loader/lib/parser.py
diff options
context:
space:
mode:
authorMagnus Hagander2012-07-06 10:51:32 +0000
committerMagnus Hagander2012-07-06 10:51:32 +0000
commit54b47fe96cb07376c717a29b84be42fa03e723fa (patch)
treecc231d1a9d63a46b7d5ad70501cdc54860a6399b /loader/lib/parser.py
parent95a4c83e4936c52711931c81b48f0ce8a0617a18 (diff)
Remove dead code
Diffstat (limited to 'loader/lib/parser.py')
-rw-r--r--loader/lib/parser.py4
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