Show More
@@ -418,17 +418,17 b' class commandline(object):' | |||
|
418 | 418 | def _limit_arglist(self, arglist, cmd, *args, **kwargs): |
|
419 | 419 | cmdlen = len(self._cmdline(cmd, *args, **kwargs)) |
|
420 | 420 | limit = self.argmax - cmdlen |
|
421 | bytes = 0 | |
|
421 | numbytes = 0 | |
|
422 | 422 | fl = [] |
|
423 | 423 | for fn in arglist: |
|
424 | 424 | b = len(fn) + 3 |
|
425 | if bytes + b < limit or len(fl) == 0: | |
|
425 | if numbytes + b < limit or len(fl) == 0: | |
|
426 | 426 | fl.append(fn) |
|
427 | bytes += b | |
|
427 | numbytes += b | |
|
428 | 428 | else: |
|
429 | 429 | yield fl |
|
430 | 430 | fl = [fn] |
|
431 | bytes = b | |
|
431 | numbytes = b | |
|
432 | 432 | if fl: |
|
433 | 433 | yield fl |
|
434 | 434 |
General Comments 0
You need to be logged in to leave comments.
Login now