Skip to content

Commit f3c396f

Browse files
author
Adrien JUND
committed
Fix import cPickle commandline
1 parent 8925c1c commit f3c396f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fs/expose/dokan/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,8 @@ def __init__(self, fs, path, dokan_opts={}, nowait=False, **kwds):
10671067
raise OSError("the dokan library is not available")
10681068
_check_path_string(path)
10691069
self.path = path
1070-
cmd = "try: import cPickle as pickle; except ImportError: import pickle;\n"
1070+
cmd = "try: import cPickle as pickle;\n"
1071+
cmd = cmd + "except ImportError: import pickle;\n"
10711072
cmd = cmd + "data = pickle.loads(%s); "
10721073
cmd = cmd + "from fs.expose.dokan import MountProcess; "
10731074
cmd = cmd + "MountProcess._do_mount(data)"

0 commit comments

Comments
 (0)