##// END OF EJS Templates
httppeer: use try/except/finally
Matt Mackall -
r25085:e05734cd default
parent child Browse files
Show More
@@ -198,7 +198,6 b' class httppeer(wireproto.wirepeer):'
198 headers = {'Content-Type': 'application/mercurial-0.1'}
198 headers = {'Content-Type': 'application/mercurial-0.1'}
199
199
200 try:
200 try:
201 try:
202 r = self._call(cmd, data=fp, headers=headers, **args)
201 r = self._call(cmd, data=fp, headers=headers, **args)
203 vals = r.split('\n', 1)
202 vals = r.split('\n', 1)
204 if len(vals) < 2:
203 if len(vals) < 2:
General Comments 0
You need to be logged in to leave comments. Login now