Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dbi.py 713B

123456789101112131415161718192021222324252627
  1. """
  2. Skeleton replacement for removed dbi module.
  3. Use of objects created by this module should be replaced with native Python objects.
  4. Dates are now returned as datetime.datetime objects, but will still accept PyTime
  5. objects also.
  6. Raw data for binary fields should be passed as buffer objects for Python 2.x,
  7. and memoryview objects in Py3k.
  8. """
  9. import warnings
  10. warnings.warn(
  11. "dbi module is obsolete, code should now use native python datetime and buffer/memoryview objects",
  12. DeprecationWarning,
  13. )
  14. import datetime
  15. dbDate = dbiDate = datetime.datetime
  16. try:
  17. dbRaw = dbiRaw = buffer
  18. except NameError:
  19. dbRaw = dbiRaw = memoryview
  20. # type names are still exported by odbc module
  21. from odbc import *