Skip to content

Commit

Permalink
Remove use of ipython_genutils
Browse files Browse the repository at this point in the history
Avoids having an implicit dependency.  cf jupyter/nbconvert#1725
  • Loading branch information
blink1073 authored Mar 12, 2022
1 parent 5f4e3fa commit 6e48cf9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions jupyterlab/federated_labextensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
jupyter_data_dir, SYSTEM_JUPYTER_PATH, ENV_JUPYTER_PATH,
)
from jupyter_core.utils import ensure_dir_exists
from ipython_genutils.py3compat import cast_unicode_py2
from jupyterlab_server.config import get_federated_extensions
from jupyter_server.extension.serverextension import ArgumentConflict

Expand Down Expand Up @@ -81,11 +80,8 @@ def develop_labextension(path, symlink=True, overwrite=False,
if isinstance(path, (list, tuple)):
raise TypeError("path must be a string pointing to a single extension to install; call this function multiple times to install multiple extensions")

path = cast_unicode_py2(path)

if not destination:
destination = basename(normpath(path))
destination = cast_unicode_py2(destination)

full_dest = normpath(pjoin(labext, destination))
if overwrite and os.path.lexists(full_dest):
Expand Down

0 comments on commit 6e48cf9

Please sign in to comment.