Mercurial > hg
changeset 36331:e218830f6f0a
convert: don't use bytes as a variable name
Differential Revision: https://phab.mercurial-scm.org/D2357
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 19 Feb 2018 23:47:15 +0530 |
parents | 1eee42aed306 |
children | aefb75730ea3 |
files | hgext/convert/common.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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