Add python3 support for some examples (#4715)
This commit is contained in:
parent
0ba2626bd2
commit
d811048887
@ -23,7 +23,10 @@ example output
|
||||
from __future__ import print_function
|
||||
|
||||
from collections import defaultdict
|
||||
import cPickle as pickle
|
||||
try:
|
||||
import cPickle as pickle
|
||||
except ImportError:
|
||||
import pickle
|
||||
from PIL import Image
|
||||
|
||||
from six.moves import range
|
||||
|
@ -55,6 +55,7 @@ Results
|
||||
'''
|
||||
|
||||
from __future__ import print_function
|
||||
from six.moves import xrange
|
||||
import numpy as np
|
||||
np.random.seed(1337)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user