Skip to content

Commit e2bf5a4

Browse files
author
Adrien JUND
committed
Fix import pickle
1 parent 993ba09 commit e2bf5a4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fs/expose/dokan/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
import stat as statinfo
7272
import subprocess
7373
try:
74-
import pickle as pickle
74+
import cPickle as pickle
7575
except ImportError:
76-
pass
76+
import pickle
7777
import datetime
7878
import ctypes
7979
from collections import deque
@@ -1069,7 +1069,7 @@ def __init__(self, fs, path, dokan_opts={}, nowait=False, **kwds):
10691069
raise OSError("the dokan library is not available")
10701070
_check_path_string(path)
10711071
self.path = path
1072-
cmd = "try: import pickle;\nexcept ImportError: import pickle as pickle;\n"
1072+
cmd = "try: import cPickle as pickle; except ImportError: import pickle;\n"
10731073
cmd = cmd + "data = pickle.loads(%s); "
10741074
cmd = cmd + "from fs.expose.dokan import MountProcess; "
10751075
cmd = cmd + "MountProcess._do_mount(data)"

0 commit comments

Comments
 (0)