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 46309de commit f5df7b8Copy full SHA for f5df7b8
odml/tools/version_converter.py
@@ -2,9 +2,11 @@
2
This module provides backwards compatibility for the VersionConverter class.
3
It is deprecated and will be removed in future versions.
4
"""
5
+import warnings
6
7
from .converters import VersionConverter
8
-print("[DEPRECATION WARNING] The VersionConverter file has been moved to "
9
- "'odml.tools.converters' and will be removed from 'odml.tools' in future "
10
- "odML releases. Please update the imports in your code accordingly.")
+_MSG = "The VersionConverter file has been moved to "\
+ "'odml.tools.converters' and will be removed from 'odml.tools' in future "\
11
+ "odML releases. Please update the imports in your code accordingly."
12
+warnings.warn(_MSG, category=DeprecationWarning, stacklevel=2)
0 commit comments