equal
deleted
inserted
replaced
495 self._abort(error.ResponseError(_("unexpected response:"), d)) |
495 self._abort(error.ResponseError(_("unexpected response:"), d)) |
496 |
496 |
497 def between(self, pairs): |
497 def between(self, pairs): |
498 batch = 8 # avoid giant requests |
498 batch = 8 # avoid giant requests |
499 r = [] |
499 r = [] |
500 for i in xrange(0, len(pairs), batch): |
500 for i in pycompat.xrange(0, len(pairs), batch): |
501 n = " ".join([wireprototypes.encodelist(p, '-') |
501 n = " ".join([wireprototypes.encodelist(p, '-') |
502 for p in pairs[i:i + batch]]) |
502 for p in pairs[i:i + batch]]) |
503 d = self._call("between", pairs=n) |
503 d = self._call("between", pairs=n) |
504 try: |
504 try: |
505 r.extend(l and wireprototypes.decodelist(l) or [] |
505 r.extend(l and wireprototypes.decodelist(l) or [] |