From bf17ff6a5c2584cb62cee1dcccbb0f063a582fc6 Mon Sep 17 00:00:00 2001 From: "Stuart D. Gathman" Date: Mon, 25 Jul 2016 22:35:20 -0400 Subject: [PATCH] Use unicode literal to join unicode strings. --- Milter/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Milter/utils.py b/Milter/utils.py index c7171fc..563d17c 100644 --- a/Milter/utils.py +++ b/Milter/utils.py @@ -219,7 +219,7 @@ def parse_header(val): u.append(unicode(s)) else: u.append(unicode(s)) - u = ''.join(u) + u = u''.join(u) for enc in ('us-ascii','iso-8859-1','utf-8'): try: return u.encode(enc)