mercurial/httppeer.py
branchstable
changeset 38033 13b2812cff2b
parent 38032 f9dc1d5b676b
child 38239 ead71b15efd5
--- a/mercurial/httppeer.py	Fri May 04 19:06:46 2018 +0200
+++ b/mercurial/httppeer.py	Mon May 21 15:14:46 2018 +0200
@@ -277,9 +277,9 @@
 
     Returns the response object.
     """
+    dbg = ui.debug
     if (ui.debugflag
         and ui.configbool('devel', 'debug.peer-request')):
-        dbg = ui.debug
         line = 'devel-peer-request: %s\n'
         dbg(line % '%s %s' % (pycompat.bytesurl(req.get_method()),
                               pycompat.bytesurl(req.get_full_url())))