--- a/mercurial/httppeer.py Fri Dec 01 14:13:55 2017 -0800
+++ b/mercurial/httppeer.py Fri Dec 01 16:53:55 2017 +0530
@@ -222,7 +222,7 @@
if not data:
data = strargs
else:
- if isinstance(data, basestring):
+ if isinstance(data, bytes):
i = io.BytesIO(data)
i.length = len(data)
data = i