Author: Richard Plangger <planri...@gmail.com>
Branch: py3.5
Changeset: r84484:324d44cefcf0
Date: 2016-05-16 20:24 +0200
http://bitbucket.org/pypy/pypy/changeset/324d44cefcf0/

Log:    (plan_rich, raffael_t) move variable assignment. translation
        complains about lock variable not defined but used

diff --git a/pypy/module/imp/importing.py b/pypy/module/imp/importing.py
--- a/pypy/module/imp/importing.py
+++ b/pypy/module/imp/importing.py
@@ -64,8 +64,8 @@
     w_mod = check_sys_modules_w(space, modulename)
     if w_mod:
         return w_mod
+    lock = getimportlock(space)
     try:
-        lock = getimportlock(space)
         lock.acquire_lock()
 
         if modulename in space.builtin_modules:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to