Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
24
venv/Lib/site-packages/win32/lib/dbi.py
Normal file
24
venv/Lib/site-packages/win32/lib/dbi.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
"""
|
||||
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 *
|
Loading…
Add table
Add a link
Reference in a new issue