Преглед на файлове

Clean up the __init__ file

Steven Silvester преди 8 години
родител
ревизия
d27fd91553
променени са 1 файла, в които са добавени 1 реда и са изтрити 6 реда
  1. 1 6
      jupyterlab/__init__.py

+ 1 - 6
jupyterlab/__init__.py

@@ -3,12 +3,7 @@
 # Copyright (c) Jupyter Development Team.
 # Distributed under the terms of the Modified BSD License.
 
-try:
-    from ._version import __version__
-except ImportError as e:
-    # when we are python 3 only, add 'from e' at the end to chain the exception.
-    raise ImportError("No module named 'jupyterlab._version'. Build the jupyterlab package to generate this module, for example, with `pip install -e /path/to/jupyterlab/repo`.")
-
+from ._version import __version__
 from .extension import load_jupyter_server_extension
 
 def _jupyter_server_extension_paths():