From c9eb281a8ae646e0723bfe36e75e500dbafc4e35 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 12 May 2017 19:20:09 -0700 Subject: [PATCH] fix tracing bug that always showed machine as "T" False binding to a mutable loop variable. I keep making this same mistake. --- src/wormhole/_boss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wormhole/_boss.py b/src/wormhole/_boss.py index 3b8950b..fec09be 100644 --- a/src/wormhole/_boss.py +++ b/src/wormhole/_boss.py @@ -113,7 +113,7 @@ class Boss(object): "RC": self._RC, "L": self._L, "C": self._C, "T": self._T} for machine in which.split(): - t = (lambda old_state, input, new_state: + t = (lambda old_state, input, new_state, machine=machine: self._print_trace(old_state, input, new_state, client_name=client_name, machine=machine, file=file))