Skip to content

Commit d9f6c0c

Browse files
committed
[tools] Add version_converter deprecation warning
Re-added 'odml.tools.version_converter.py' that imports the 'VersionConverter' class from its new location 'odml.tools.converters' and prints a deprecation warning. This ensures backwards compatibility with dependent tools like odml-ui during a grace period.
1 parent a31e7e0 commit d9f6c0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

odml/tools/version_converter.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from .converters import VersionConverter
2+
3+
print("[DEPRECATION WARNING] The VersionConverter file has been moved to "
4+
"'odml.tools.converters' and will be removed from 'odml.tools' in future "
5+
"odML releases. Please update the imports in your code accordingly.")

0 commit comments

Comments
 (0)