except ImportError when importing cPickle on Python3
cPickle is not available with Python3. With Python3 the standard version should be imported. Change-Id: I0c17aaeeebceff1c25950bbe59cedc62f31b13e7
This commit is contained in:
parent
b0c88e7dd7
commit
e3e93c7f90
@ -19,7 +19,10 @@ import re
|
||||
import sys
|
||||
import threading
|
||||
import traceback
|
||||
try:
|
||||
import cPickle as pickle
|
||||
except ImportError:
|
||||
import pickle
|
||||
import os
|
||||
|
||||
from genshi.template import TemplateLoader
|
||||
|
Loading…
Reference in New Issue
Block a user