From 88d2ed09aa41abda31ebc271b1103723869ead7b Mon Sep 17 00:00:00 2001 From: Lasote Date: Fri, 18 Mar 2016 09:43:56 +0100 Subject: [PATCH] Fixed fromstring for Python3 --- patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch.py b/patch.py index 45c5a48..535b674 100755 --- a/patch.py +++ b/patch.py @@ -176,7 +176,7 @@ def fromstring(s): """ Parse text string and return PatchSet() object (or False if parsing fails) """ - ps = PatchSet( StringIO(s) ) + ps = PatchSet( StringIO(s.encode()) ) if ps.errors == 0: return ps return False