Mercurial > public > mercurial-scm > hg
comparison contrib/debugcmdserver.py @ 16687:e34106fa0dc3
cleanup: "raise SomeException()" -> "raise SomeException"
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sat, 12 May 2012 16:00:58 +0200 |
parents | 1d1f6dff9364 |
children | cd03fbd5ab57 |
comparison
equal
deleted
inserted
replaced
16686:67964cda8701 | 16687:e34106fa0dc3 |
---|---|
22 log = open(sys.argv[1], 'a') | 22 log = open(sys.argv[1], 'a') |
23 | 23 |
24 def read(size): | 24 def read(size): |
25 data = sys.stdin.read(size) | 25 data = sys.stdin.read(size) |
26 if not data: | 26 if not data: |
27 raise EOFError() | 27 raise EOFError |
28 sys.stdout.write(data) | 28 sys.stdout.write(data) |
29 sys.stdout.flush() | 29 sys.stdout.flush() |
30 return data | 30 return data |
31 | 31 |
32 try: | 32 try: |