Closed catseye closed 11 years ago
This is technically safe as-is; templabelcount will be initialized or created by parse(), and only parse_line() updates it. atom() only reads the value.
However, the change does improve the robustness of the code should atom need to do updates later.
I found this buglet using
pyflakes
--templabelcount
needs to be defined (at toplevel) and declaredglobal
in order foratom()
to correctly see it. (Note, though, that I haven't tested this code path either before or after this change.)