diff mercurial/httppeer.py @ 35197:bfd072c52e03

py3: use bytes in place of basestring All strings in mercurial must be bytes so we can easily replace basestring with bytes. Differential Revision: https://phab.mercurial-scm.org/D1555
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 01 Dec 2017 16:53:55 +0530
parents 67e9678efd98
children 98bc4c43f570
line wrap: on
line diff
--- 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