From: Jeremy Kerr Date: Thu, 10 Feb 2011 03:19:23 +0000 (+0800) Subject: Revert "Decode patch from UTF-8 while parsing from stdin" X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=31ddb24d608597721e9660f90a9c8c11a47b7fb0;p=patchwork Revert "Decode patch from UTF-8 while parsing from stdin" This reverts commit 7fd7d0bbe4e3fce405e02e9e630ef70023fdd43e. parse_patch() will never be handed anything but unicode, so no need to do the decode. Signed-off-by: Jeremy Kerr --- diff --git a/apps/patchwork/parser.py b/apps/patchwork/parser.py index 24631b7..2b5e9a0 100644 --- a/apps/patchwork/parser.py +++ b/apps/patchwork/parser.py @@ -63,7 +63,8 @@ def parse_patch(text): lc = (0, 0) hunk = 0 - for line in text.decode('utf-8').split('\n'): + + for line in text.split('\n'): line += '\n' if state == 0: