diff --git a/load.py b/load.py index 1f14d37..469b54e 100644 --- a/load.py +++ b/load.py @@ -1,9 +1,6 @@ import os -import sys from typing import Type, Iterable -import click - from common import Product # import all files in the 'products' folder @@ -14,11 +11,6 @@ sub_module = module[:-3] - # cbapi module has broken imports for Python 3.10+ - # importing it here would result in none of the products working on Python 3.10+ - if sub_module == 'vmware_cb_response': - continue - __import__('products.' + sub_module, locals(), globals()) del module @@ -42,14 +34,6 @@ def get_product_instance(product: str, **kwargs) -> Product: """ Get an instance of the product implementation matching the specified product string. """ - if product == 'cbr': - if sys.version_info.major == 3 and sys.version_info.minor > 9: - click.secho(f'cbr only functions on Python 3.9 due to a library limitation', fg='red') - exit(1) - - from products.vmware_cb_response import CbResponse - return CbResponse(**kwargs) - for subclass in _get_subclasses(): if subclass.product == product: return subclass(**kwargs)