[pywin32-checkins] pywin32/win32/Lib dbi.py,NONE,1.1.2.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2008-10-06 03:22:14
|
Update of /cvsroot/pywin32/pywin32/win32/Lib In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10292 Added Files: Tag: py3k dbi.py Log Message: Add a skeleton dbi module. --- NEW FILE: dbi.py --- """ Skeleton replacement for removed dbi module. Use of objects created by this module should be replaced with native Python objects. Dates are now returned as datetime.datetime objects, but will still accept PyTime objects also. Raw data for binary fields should be passed as buffer objects for Python 2.x, and memoryview objects in Py3k. """ import warnings warnings.warn( "dbi module is obsolete, code should now use native python datetime and buffer/memoryview objects", DeprecationWarning) import datetime dbDate = dbiDate = datetime.datetime try: dbRaw = dbiRaw = buffer except NameError: dbRaw = dbiRaw = memoryview # type names are still exported by odbc module from odbc import * |