From d24ac5597aa5353402b6d7408c0a153131564243 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 3 Dec 2020 12:59:18 +0100 Subject: [PATCH] removed deprecated from lib --- pype/lib/__init__.py | 5 ----- pype/lib/deprecated.py | 26 ---------------------- pype/tests/test_lib_restructuralization.py | 2 -- 3 files changed, 33 deletions(-) delete mode 100644 pype/lib/deprecated.py diff --git a/pype/lib/__init__.py b/pype/lib/__init__.py index ecdd155c99..5fec2b8069 100644 --- a/pype/lib/__init__.py +++ b/pype/lib/__init__.py @@ -1,11 +1,6 @@ # -*- coding: utf-8 -*- """Pype lib module.""" -from .deprecated import ( - get_avalon_database, - set_io_database -) - from .env_tools import ( env_value_to_bool, get_paths_from_environ diff --git a/pype/lib/deprecated.py b/pype/lib/deprecated.py deleted file mode 100644 index e7296f67ef..0000000000 --- a/pype/lib/deprecated.py +++ /dev/null @@ -1,26 +0,0 @@ -import os - -from avalon import io - - -def get_avalon_database(): - """Mongo database used in avalon's io. - - * Function is not used in pype 3.0 where was replaced with usage of - AvalonMongoDB. - """ - if io._database is None: - set_io_database() - return io._database - - -def set_io_database(): - """Set avalon's io context with environemnts. - - * Function is not used in pype 3.0 where was replaced with usage of - AvalonMongoDB. - """ - required_keys = ["AVALON_PROJECT", "AVALON_ASSET", "AVALON_SILO"] - for key in required_keys: - os.environ[key] = os.environ.get(key, "") - io.install() diff --git a/pype/tests/test_lib_restructuralization.py b/pype/tests/test_lib_restructuralization.py index 152be8d1eb..48370f5438 100644 --- a/pype/tests/test_lib_restructuralization.py +++ b/pype/tests/test_lib_restructuralization.py @@ -13,8 +13,6 @@ def test_backward_compatibility(printer): from pype.lib import ApplicationLaunchFailed from pype.lib import launch_application from pype.lib import ApplicationAction - from pype.lib import get_avalon_database - from pype.lib import set_io_database from pype.lib import get_ffmpeg_tool_path from pype.lib import get_last_version_from_path