httppeer: move a variable to avoid a bad reference before assignment warning
No actual bug here, because the conditional used to assign is the same as the
conditional in the `finally` block that guards the reference.
--- a/mercurial/httppeer.py Fri Jul 26 21:54:07 2024 -0400
+++ b/mercurial/httppeer.py Fri Jul 26 21:59:34 2024 -0400
@@ -245,8 +245,9 @@
Returns the response object.
"""
dbg = ui.debug
+ line = b'devel-peer-request: %s\n'
+
if ui.debugflag and ui.configbool(b'devel', b'debug.peer-request'):
- line = b'devel-peer-request: %s\n'
dbg(
line
% b'%s %s'