浏览代码

Backport PR #12202: Remove use of ipython_genutils (#12203)

Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
MeeseeksMachine 3 年之前
父节点
当前提交
a838684f09
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      jupyterlab/federated_labextensions.py

+ 0 - 4
jupyterlab/federated_labextensions.py

@@ -20,7 +20,6 @@ from jupyter_core.paths import (
     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):