##// END OF EJS Templates
httppeer: declare 'dbg' at the function level...
Boris Feld -
r38139:13b2812c stable
parent child Browse files
Show More
@@ -277,9 +277,9 b' def sendrequest(ui, opener, req):'
277
277
278 Returns the response object.
278 Returns the response object.
279 """
279 """
280 dbg = ui.debug
280 if (ui.debugflag
281 if (ui.debugflag
281 and ui.configbool('devel', 'debug.peer-request')):
282 and ui.configbool('devel', 'debug.peer-request')):
282 dbg = ui.debug
283 line = 'devel-peer-request: %s\n'
283 line = 'devel-peer-request: %s\n'
284 dbg(line % '%s %s' % (pycompat.bytesurl(req.get_method()),
284 dbg(line % '%s %s' % (pycompat.bytesurl(req.get_method()),
285 pycompat.bytesurl(req.get_full_url())))
285 pycompat.bytesurl(req.get_full_url())))
General Comments 0
You need to be logged in to leave comments. Login now