convert: don't use bytes as a variable name
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 19 Feb 2018 23:47:15 +0530
changeset 36331 e218830f6f0a
parent 36330 1eee42aed306
child 36332 aefb75730ea3
convert: don't use bytes as a variable name Differential Revision: https://phab.mercurial-scm.org/D2357
hgext/convert/common.py
--- a/hgext/convert/common.py	Mon Feb 19 23:46:42 2018 +0530
+++ b/hgext/convert/common.py	Mon Feb 19 23:47:15 2018 +0530
@@ -418,17 +418,17 @@
     def _limit_arglist(self, arglist, cmd, *args, **kwargs):
         cmdlen = len(self._cmdline(cmd, *args, **kwargs))
         limit = self.argmax - cmdlen
-        bytes = 0
+        numbytes = 0
         fl = []
         for fn in arglist:
             b = len(fn) + 3
-            if bytes + b < limit or len(fl) == 0:
+            if numbytes + b < limit or len(fl) == 0:
                 fl.append(fn)
-                bytes += b
+                numbytes += b
             else:
                 yield fl
                 fl = [fn]
-                bytes = b
+                numbytes = b
         if fl:
             yield fl