Skip to content
Snippets Groups Projects
Commit bf17ff6a authored by Stuart D. Gathman's avatar Stuart D. Gathman
Browse files

Use unicode literal to join unicode strings.

parent 32f3034b
Branches
No related tags found
No related merge requests found
...@@ -219,7 +219,7 @@ def parse_header(val): ...@@ -219,7 +219,7 @@ def parse_header(val):
u.append(unicode(s)) u.append(unicode(s))
else: else:
u.append(unicode(s)) u.append(unicode(s))
u = ''.join(u) u = u''.join(u)
for enc in ('us-ascii','iso-8859-1','utf-8'): for enc in ('us-ascii','iso-8859-1','utf-8'):
try: try:
return u.encode(enc) return u.encode(enc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment