commit | c86d9e2846e5bcf7f047f96e5c95432ecfa4bcb7 | [log] [tgz] |
---|---|---|
author | Petri Lehtinen <petri@digip.org> | Fri Feb 17 21:30:55 2012 +0200 |
committer | Petri Lehtinen <petri@digip.org> | Fri Feb 17 21:31:02 2012 +0200 |
tree | b1bb4d355af59a6af84284bed7610275317acce2 | |
parent | b3890226b33f86d485dccac309d442b15e766270 [diff] |
Fix a variable scoping error in an sqlite3 test Closes #11689.
diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py index a6161fa..a92e838 100644 --- a/Lib/sqlite3/test/hooks.py +++ b/Lib/sqlite3/test/hooks.py
@@ -168,6 +168,7 @@ con = sqlite.connect(":memory:") action = 0 def progress(): + nonlocal action action = 1 return 0 con.set_progress_handler(progress, 1)