Commit dc784c96 authored by Jeremy Hylton's avatar Jeremy Hylton

Make the warnings text match.

parent f671d766
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
############################################################################## ##############################################################################
"""Database connection support """Database connection support
$Id: Connection.py,v 1.147 2004/04/14 20:45:37 jeremy Exp $""" $Id: Connection.py,v 1.148 2004/04/15 16:22:38 jeremy Exp $"""
import logging import logging
import sys import sys
...@@ -243,7 +243,8 @@ class Connection(ExportImport, object): ...@@ -243,7 +243,8 @@ class Connection(ExportImport, object):
method. You can pass a transaction manager (TM) to DB.open() method. You can pass a transaction manager (TM) to DB.open()
to control which TM the Connection uses. to control which TM the Connection uses.
""" """
warnings.warn("getTransaction() is deprecated.", warnings.warn("getTransaction() is deprecated. "
"Use the txn_mgr argument to DB.open() instead.",
DeprecationWarning) DeprecationWarning)
return self._txn_mgr.get() return self._txn_mgr.get()
......
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