mercurial/util.py
changeset 30031 0f6d6fdd3c2a
parent 29981 73b1c328a7da
child 30036 3f4e1c033f40
--- 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: