Commit 6d29030f authored by Jeremy Hylton's avatar Jeremy Hylton

Make the warning match the method name.

parent 75eb1c1c
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
############################################################################## ##############################################################################
"""Database connection support """Database connection support
$Id: Connection.py,v 1.149 2004/04/16 01:08:12 tim_one Exp $""" $Id: Connection.py,v 1.150 2004/04/16 14:19:11 jeremy Exp $"""
import logging import logging
import sys import sys
...@@ -266,7 +266,7 @@ class Connection(ExportImport, object): ...@@ -266,7 +266,7 @@ class Connection(ExportImport, object):
can pass a transaction manager (TM) to DB.open() to control can pass a transaction manager (TM) to DB.open() to control
which TM the Connection uses. which TM the Connection uses.
""" """
warnings.warn("getTransaction() is deprecated. " warnings.warn("setLocalTransaction() is deprecated. "
"Use the txn_mgr argument to DB.open() instead.", "Use the txn_mgr argument to DB.open() instead.",
DeprecationWarning) DeprecationWarning)
if self._txn_mgr is transaction.manager: if self._txn_mgr is transaction.manager:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment