Skip to content

Commit

Permalink
Fix the DEBUG API command.
Browse files Browse the repository at this point in the history
The `_in_debug` local was shadowing the global `_in_debug` variable in
`main()`, causing debug messages not to appear as designed when the
`DEBUG` command was sent.

Tested in Python 2.7.
  • Loading branch information
Michael F. Booth committed Apr 12, 2017
1 parent d24ebba commit 4d53c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unox.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def reportRecursiveChanges(local_path, cur_lvl):


def main():
global replicas, pending_reps, triggered_reps
global replicas, pending_reps, triggered_reps, _in_debug
# Version handshake.
sendCmd("VERSION", ["1"])
[cmd, args] = recvCmd();
Expand Down

0 comments on commit 4d53c6e

Please sign in to comment.