We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2287b5a commit 034d7bdCopy full SHA for 034d7bd
swig/python/osgeo/__init__.py
@@ -93,8 +93,7 @@ def ver_str(ver):
93
if fail_on_unsupported_version:
94
raise Exception(msg)
95
else:
96
- from warnings import warn, simplefilter
97
- simplefilter('always', DeprecationWarning)
+ from warnings import warn
98
warn(msg, DeprecationWarning)
99
elif this_python_version_will_be_deprecated_in_gdal_version:
100
msg = 'You are using Python {} with GDAL {}. ' \
@@ -106,6 +105,5 @@ def ver_str(ver):
106
105
ver_str(next_version_of_gdal_will_use_python_version),
107
ver_str(this_python_version_will_be_deprecated_in_gdal_version))
108
109
110
111
0 commit comments