Skip to content
Snippets Groups Projects
Commit 978c9a0c5974 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

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).
parent bac24a8a095a
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@
_pipe = None
_checked = False
_session = 'none'
def _isactive():
global _pipe, _session, _checked
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment