Author: Armin Rigo <ar...@tunes.org>
Branch: concurrent-marksweep
Changeset: r51657:d1c21fed7569
Date: 2012-01-12 14:10 +0100
http://bitbucket.org/pypy/pypy/changeset/d1c21fed7569/

Log:    Fix: conflict with global name 'error'.

diff --git a/pypy/module/thread/ll_thread.py b/pypy/module/thread/ll_thread.py
--- a/pypy/module/thread/ll_thread.py
+++ b/pypy/module/thread/ll_thread.py
@@ -122,9 +122,9 @@
 
     def release(self):
         # Sanity check: the lock must be locked
-        error = self.acquire(False)
+        err = self.acquire(False)
         c_thread_releaselock(self._lock)
-        if error:
+        if err:
             raise error("bad lock")
 
     def __del__(self):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to