comparison mercurial/hgweb/protocol.py @ 9198:061eeb602354

coding style: use a space after comma I left a cases like 'lambda x,y:' alone -- the lack of a space does not bother me as much when the variables are single letters.
author Martin Geisler <mg@lazybytes.net>
date Wed, 22 Jul 2009 23:12:54 +0200
parents b30775386d40
children 8269fe2d48f6
comparison
equal deleted inserted replaced
9197:a05aa192a00a 9198:061eeb602354
24 24
25 def lookup(repo, req): 25 def lookup(repo, req):
26 try: 26 try:
27 r = hex(repo.lookup(req.form['key'][0])) 27 r = hex(repo.lookup(req.form['key'][0]))
28 success = 1 28 success = 1
29 except Exception,inst: 29 except Exception, inst:
30 r = str(inst) 30 r = str(inst)
31 success = 0 31 success = 0
32 resp = "%s %s\n" % (success, r) 32 resp = "%s %s\n" % (success, r)
33 req.respond(HTTP_OK, HGTYPE, length=len(resp)) 33 req.respond(HTTP_OK, HGTYPE, length=len(resp))
34 yield resp 34 yield resp