Skip to content

Commit

Permalink
python 3 compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebig committed Jan 26, 2016
1 parent 56a2a15 commit 0818f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Examples/Image/MNIST/AdditionalFiles/mnist_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import numpy as np

def loadData(src, cimg):
print 'Downloading ' + src
print ('Downloading ' + src)
gzfname, h = urllib.urlretrieve(src, './delete.me')
print 'Done.'
print ('Done.')
try:
with gzip.open(gzfname) as gz:
n = struct.unpack('I', gz.read(4))
Expand Down

0 comments on commit 0818f4f

Please sign in to comment.