summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test/test_thread.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-02-02 15:57:45 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-02-02 15:57:45 (GMT)
commit8d3f130d41d0c3f437f37a18c624955ce8bf65d3 (patch)
tree84d89632ffbc9d3195d4cb43f5d99e782530e6db /Lib/bsddb/test/test_thread.py
parent0ac4d4c82df9c2d629dee9cd388e84b7f08d25fe (diff)
downloadcpython-8d3f130d41d0c3f437f37a18c624955ce8bf65d3.zip
cpython-8d3f130d41d0c3f437f37a18c624955ce8bf65d3.tar.gz
cpython-8d3f130d41d0c3f437f37a18c624955ce8bf65d3.tar.bz2
Fix idioms and a couple of py3k warnings. Patch by Florent Xicluna.
Diffstat (limited to 'Lib/bsddb/test/test_thread.py')
-rw-r--r--Lib/bsddb/test/test_thread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bsddb/test/test_thread.py b/Lib/bsddb/test/test_thread.py
index d22d1df..28a2555 100644
--- a/Lib/bsddb/test/test_thread.py
+++ b/Lib/bsddb/test/test_thread.py
@@ -424,7 +424,7 @@ class ThreadedTransactionsBase(BaseThreadedTestCase):
readers.pop().start()
except (db.DBLockDeadlockError, db.DBLockNotGrantedError), val:
if verbose:
- print "%s: Aborting transaction (%s)" % (name, val[1])
+ print "%s: Aborting transaction (%s)" % (name, val.args[1])
txn.abort()
if verbose:
@@ -455,7 +455,7 @@ class ThreadedTransactionsBase(BaseThreadedTestCase):
finished = True
except (db.DBLockDeadlockError, db.DBLockNotGrantedError), val:
if verbose:
- print "%s: Aborting transaction (%s)" % (name, val[1])
+ print "%s: Aborting transaction (%s)" % (name, val.args[1])
c.close()
txn.abort()