浏览代码

[fs] Fix left out Python 2 url lib import

Romain Rigaux 4 年之前
父节点
当前提交
ce1786a3fd
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      desktop/core/src/desktop/lib/fs/__init__.py

+ 1 - 6
desktop/core/src/desktop/lib/fs/__init__.py

@@ -21,15 +21,14 @@ standard_library.install_aliases()
 from builtins import filter
 import posixpath
 import sys
-import urllib.parse
 
-from desktop.lib.fs.proxyfs import ProxyFS
 
 if sys.version_info[0] > 2:
   from urllib.parse import urlparse as lib_urlparse
 else:
   from urlparse import urlparse as lib_urlparse
 
+
 def splitpath(path):
   split = lib_urlparse(path)
   if split.scheme and split.netloc:
@@ -42,7 +41,3 @@ def splitpath(path):
     parts = ['/'] + posixpath.normpath(path).split('/')
   # Filter empty parts out
   return list(filter(len, parts))
-
-
-
-