File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,13 @@ Thick Mode Changes
73
73
Common Changes
74
74
++++++++++++++
75
75
76
+ #) Use of Python 3.6 and 3.7 is deprecated and support for them will be
77
+ removed in a future release. A warning is issued when these versions are
78
+ used but otherwise they will continue to function as usual. The warning can
79
+ be suppressed by importing `warnings
80
+ <https://docs.python.org/3/library/warnings.html> `__ and adding a call like
81
+ ``warnings.filterwarnings(action='ignore', module="oracledb") ``
82
+ *before * importing ``oracledb ``.
76
83
#) Added support for the :attr: `~Variable.outconverter ` being called when a
77
84
null value is fetched from the database and the new parameter
78
85
``convert_nulls `` to the method :meth: `Cursor.var() ` is passed the value
Original file line number Diff line number Diff line change 29
29
#------------------------------------------------------------------------------
30
30
31
31
import sys
32
+ import warnings
33
+
34
+ if sys .version_info [:2 ] < (3 , 8 ):
35
+ message = f"Python { sys .version_info [0 ]} .{ sys .version_info [1 ]} " \
36
+ "is no longer supported by the Python core team. " \
37
+ "Therefore, support for it is deprecated in python-oracledb and " \
38
+ "will be removed in a future release"
39
+ warnings .warn (message )
32
40
33
41
from .version import (
34
42
__version__ as __version__
You can’t perform that action at this time.
0 commit comments