From 4d53c6ed13790e3007c993119325d12c7d492826 Mon Sep 17 00:00:00 2001 From: "Michael F. Booth" Date: Wed, 12 Apr 2017 18:33:34 -0400 Subject: [PATCH] Fix the DEBUG API command. 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. --- unox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unox.py b/unox.py index c4e3c4b..cf19d81 100755 --- a/unox.py +++ b/unox.py @@ -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();