diff --git a/pype/lib/__init__.py b/pype/lib/__init__.py index 4ca5fa999c..bf3771c0e7 100644 --- a/pype/lib/__init__.py +++ b/pype/lib/__init__.py @@ -25,7 +25,6 @@ from .lib_old import ( get_version_from_path, get_last_version_from_path, get_subsets, - CustomNone, get_linked_assets, map_subsets_by_family, BuildWorkfile, diff --git a/pype/lib/lib_old.py b/pype/lib/lib_old.py index 7284a1026d..6b142c8325 100644 --- a/pype/lib/lib_old.py +++ b/pype/lib/lib_old.py @@ -618,45 +618,6 @@ def get_subsets(asset_name, return output_dict -class CustomNone: - """Created object can be used as custom None (not equal to None). - - WARNING: Multiple created objects are not equal either. - Exmple: - >>> a = CustomNone() - >>> a == None - False - >>> b = CustomNone() - >>> a == b - False - >>> a == a - True - """ - - def __init__(self): - """Create uuid as identifier for custom None.""" - self.identifier = str(uuid.uuid4()) - - def __bool__(self): - """Return False (like default None).""" - return False - - def __eq__(self, other): - """Equality is compared by identifier value.""" - if type(other) == type(self): - if other.identifier == self.identifier: - return True - return False - - def __str__(self): - """Return value of identifier when converted to string.""" - return self.identifier - - def __repr__(self): - """Representation of custom None.""" - return "".format(str(self.identifier)) - - def get_linked_assets(asset_entity): """Return linked assets for `asset_entity`.""" inputs = asset_entity["data"].get("inputs", [])