Mercurial > hg
diff hgdemandimport/tracing.py @ 42709:978c9a0c5974 stable
demandimport: explicitly declare `_session` at the module level
The `_session` module level variable is set within a function using the `global`
keyword. This confuses my `test-check-pyflakes.t`. Explicitly declaring the
variable at the top level solves the issue (and seems absolutely reasonable).
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 08 Aug 2019 11:06:13 +0200 |
parents | e658ac39fe41 |
children | 2372284d9457 |
line wrap: on
line diff