Skip to content

Commit 25a2903

Browse files
longjonlukeyeager
authored andcommitted
[pycaffe] add missing import sys
1 parent f73ed4d commit 25a2903

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/caffe/io.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# Python3 will most likely not be able to load protobuf
88
from caffe.proto import caffe_pb2
99
except:
10+
import sys
1011
if sys.version_info >= (3,0):
1112
print("Failed to include caffe_pb2, things might go wrong!")
1213
else:

0 commit comments

Comments
 (0)