# HG changeset patch # User Matt Harbison # Date 1722045574 14400 # Node ID 78f789a4c8a21d695709df8150d47202ab8afa5b # Parent d17578f96e60b4b738f3e362e35c27d961991be2 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. diff -r d17578f96e60 -r 78f789a4c8a2 mercurial/httppeer.py --- 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'