From 79bc69470d8d907cd0f8e4c71788576a31899cad Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sat, 28 Apr 2018 16:18:10 +0300 Subject: Better Python 2/3 support --- gsxws/objectify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gsxws/objectify.py') diff --git a/gsxws/objectify.py b/gsxws/objectify.py index dfcae79..41eb4b3 100644 --- a/gsxws/objectify.py +++ b/gsxws/objectify.py @@ -160,7 +160,7 @@ def parse(root, response): if isinstance(root, str) and os.path.exists(root): root = objectify.parse(root, parser) else: - root = objectify.fromstring(root.encode(), parser) + root = objectify.fromstring(root, parser) return root.find('*//%s' % response) -- cgit v1.2.3