Skip to content

Commit

Permalink
Backport PR jupyterlab#12202: Remove use of ipython_genutils
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored and meeseeksmachine committed Mar 12, 2022
1 parent 78ba837 commit fdd20ed
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 fdd20ed

Please sign in to comment.