summaryrefslogtreecommitdiff
path: root/patchwork/parser.py
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2020-02-27 23:13:54 +0000
committerStephen Finucane <stephen@that.guru>2020-02-27 23:17:32 +0000
commiteee67b4bb4976a881a79f3bfcf15cc57fefc7d6e (patch)
treefc3fb64c1687b9cb6645b7378cdc808e842720cf /patchwork/parser.py
parent5b904f91c4cab1ff3f8460c9d4ed920a990c8db3 (diff)
downloadpatchwork-eee67b4bb4976a881a79f3bfcf15cc57fefc7d6e.tar
patchwork-eee67b4bb4976a881a79f3bfcf15cc57fefc7d6e.tar.gz
tox: Switch non-pyNN targets to Python 3
This is long overdue and highlights a small issue, which is easily fixed by use of Sphinx. Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'patchwork/parser.py')
-rw-r--r--patchwork/parser.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/patchwork/parser.py b/patchwork/parser.py
index 5d86426..0e88d93 100644
--- a/patchwork/parser.py
+++ b/patchwork/parser.py
@@ -160,12 +160,7 @@ def clean_header(header):
if sane_header is None:
return None
- # on Py2, we want to do unicode(), on Py3, str().
- # That gets us the decoded, un-wrapped header.
- if six.PY2:
- header_str = unicode(sane_header)
- else:
- header_str = str(sane_header)
+ header_str = six.text_type(sane_header)
return normalise_space(header_str)