Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove use of ipython_genutils #12202

Merged
merged 1 commit into from
Mar 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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