diff --git a/jupyterlab/federated_labextensions.py b/jupyterlab/federated_labextensions.py index 4874cfd0d525..a95ee10ba2d7 100644 --- a/jupyterlab/federated_labextensions.py +++ b/jupyterlab/federated_labextensions.py @@ -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 @@ -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):