Mercurial > public > mercurial-scm > hg
comparison mercurial/keepalive.py @ 7875:553aa0cbeab6
cleanup: drop unused assignments
author | Peter Arrenbrecht <peter.arrenbrecht@gmail.com> |
---|---|
date | Mon, 23 Mar 2009 13:13:06 +0100 |
parents | d812029cda85 |
children | 4f13ed6ee544 |
comparison
equal
deleted
inserted
replaced
7874:d812029cda85 | 7875:553aa0cbeab6 |
---|---|
445 self.close() | 445 self.close() |
446 | 446 |
447 return value | 447 return value |
448 | 448 |
449 def readline(self, limit=-1): | 449 def readline(self, limit=-1): |
450 data = "" | |
451 i = self._rbuf.find('\n') | 450 i = self._rbuf.find('\n') |
452 while i < 0 and not (0 < limit <= len(self._rbuf)): | 451 while i < 0 and not (0 < limit <= len(self._rbuf)): |
453 new = self._raw_read(self._rbufsize) | 452 new = self._raw_read(self._rbufsize) |
454 if not new: break | 453 if not new: break |
455 i = new.find('\n') | 454 i = new.find('\n') |
614 | 613 |
615 | 614 |
616 def test(url, N=10): | 615 def test(url, N=10): |
617 print "checking error hander (do this on a non-200)" | 616 print "checking error hander (do this on a non-200)" |
618 try: error_handler(url) | 617 try: error_handler(url) |
619 except IOError, e: | 618 except IOError: |
620 print "exiting - exception will prevent further tests" | 619 print "exiting - exception will prevent further tests" |
621 sys.exit() | 620 sys.exit() |
622 print | 621 print |
623 print "performing continuity test (making sure stuff isn't corrupted)" | 622 print "performing continuity test (making sure stuff isn't corrupted)" |
624 continuity(url) | 623 continuity(url) |