fix tracing bug that always showed machine as "T"

False binding to a mutable loop variable. I keep making this same mistake.
This commit is contained in:
Brian Warner 2017-05-12 19:20:09 -07:00
parent 23c16717aa
commit c9eb281a8a

View File

@ -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))