From 550b21b410cebf56bff74c8018128e6bec1daa59 Mon Sep 17 00:00:00 2001 From: Jan Petermann <jpeterma@physnet.uni-hamburg.de> Date: Mon, 9 Dec 2019 13:43:29 +0100 Subject: [PATCH] remove import test, since part of the package itself --- src/openqlab/__init__.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/openqlab/__init__.py b/src/openqlab/__init__.py index d1899a8..b4082f6 100644 --- a/src/openqlab/__init__.py +++ b/src/openqlab/__init__.py @@ -1,4 +1,6 @@ -from pkg_resources import get_distribution, DistributionNotFound +from pkg_resources import DistributionNotFound, get_distribution + +from openqlab.io.data_container import DataContainer try: # Change here if project is renamed and does not equal the package name @@ -8,8 +10,3 @@ except DistributionNotFound: __version__ = "unknown" __all__ = ["analysis", "io", "plots", "conversion"] - -try: - from openqlab.io.data_container import DataContainer -except ImportError: - print("Unable to import DataContainer") -- GitLab