summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien JUND <adrien.jund@islog.com>2016-10-24 10:07:44 +0200
committerAdrien JUND <adrien.jund@islog.com>2016-10-24 10:07:44 +0200
commitf3c396f454de47cfbf2cd2a894c7d54d3509cfae (patch)
tree8a52a4e50554d8b76d1df5a343fa381e4fbc925b
parent8925c1c5a10afc13b5c603a4d3c4c08435a4d1e8 (diff)
downloadpyfilesystem-git-f3c396f454de47cfbf2cd2a894c7d54d3509cfae.tar.gz
Fix import cPickle commandline
-rw-r--r--fs/expose/dokan/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/expose/dokan/__init__.py b/fs/expose/dokan/__init__.py
index e10d0c0..a447aaf 100644
--- a/fs/expose/dokan/__init__.py
+++ b/fs/expose/dokan/__init__.py
@@ -1067,7 +1067,8 @@ class MountProcess(subprocess.Popen):
raise OSError("the dokan library is not available")
_check_path_string(path)
self.path = path
- cmd = "try: import cPickle as pickle; except ImportError: import pickle;\n"
+ cmd = "try: import cPickle as pickle;\n"
+ cmd = cmd + "except ImportError: import pickle;\n"
cmd = cmd + "data = pickle.loads(%s); "
cmd = cmd + "from fs.expose.dokan import MountProcess; "
cmd = cmd + "MountProcess._do_mount(data)"