forked from VimPlug/jedi
Use cPickle on Python 2 if available
Attempt to load the C version of pickle on Python 2 as it is way faster.
This commit is contained in:
@@ -381,8 +381,12 @@ if is_py3:
|
||||
else:
|
||||
import Queue as queue
|
||||
|
||||
|
||||
import pickle
|
||||
try:
|
||||
# Attempt to load the C implementation of pickle on Python 2 as it is way
|
||||
# faster.
|
||||
import cPickle as pickle
|
||||
except ImportError:
|
||||
import pickle
|
||||
if sys.version_info[:2] == (3, 3):
|
||||
"""
|
||||
Monkeypatch the unpickler in Python 3.3. This is needed, because the
|
||||
|
||||
Reference in New Issue
Block a user