Mercurial > public > mercurial-scm > hg
comparison mercurial/keepalive.py @ 16687:e34106fa0dc3
cleanup: "raise SomeException()" -> "raise SomeException"
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sat, 12 May 2012 16:00:58 +0200 |
parents | 67964cda8701 |
children | cfb6682961b8 |
comparison
equal
deleted
inserted
replaced
16686:67964cda8701 | 16687:e34106fa0dc3 |
---|---|
532 | 532 |
533 if self.sock is None: | 533 if self.sock is None: |
534 if self.auto_open: | 534 if self.auto_open: |
535 self.connect() | 535 self.connect() |
536 else: | 536 else: |
537 raise httplib.NotConnected() | 537 raise httplib.NotConnected |
538 | 538 |
539 # send the data to the server. if we get a broken pipe, then close | 539 # send the data to the server. if we get a broken pipe, then close |
540 # the socket. we want to reconnect when somebody tries to send again. | 540 # the socket. we want to reconnect when somebody tries to send again. |
541 # | 541 # |
542 # NOTE: we DO propagate the error, though, because we cannot simply | 542 # NOTE: we DO propagate the error, though, because we cannot simply |