Commit 31ddb24d authored by Jeremy Kerr's avatar Jeremy Kerr
Browse files

Revert "Decode patch from UTF-8 while parsing from stdin"

This reverts commit 7fd7d0bb


parse_patch() will never be handed anything but unicode, so no need to
do the decode.
Signed-off-by: default avatarJeremy Kerr <>
parent 7fd7d0bb
......@@ -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:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment