Procházet zdrojové kódy

Clean up the __init__ file

Steven Silvester před 8 roky
rodič
revize
d27fd91553
1 změnil soubory, kde provedl 1 přidání a 6 odebrání
  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():