--- a/mercurial/util.py Fri Sep 30 00:27:35 2016 +0200
+++ b/mercurial/util.py Wed Sep 28 20:01:23 2016 +0900
@@ -232,7 +232,7 @@
try:
buffer = buffer
except NameError:
- if sys.version_info[0] < 3:
+ if not pycompat.ispy3:
def buffer(sliceable, offset=0):
return sliceable[offset:]
else: