Fixed data_utils to work with Python 2 and 3
This commit is contained in:
parent
4bb90a5bfd
commit
88e8403bfb
@ -1,7 +1,7 @@
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
import urllib, tarfile
|
||||
import inspect, os
|
||||
import tarfile, inspect, os
|
||||
from six.moves.urllib.request import urlretrieve
|
||||
from ..utils.generic_utils import Progbar
|
||||
|
||||
def get_file(fname, origin, untar=False):
|
||||
@ -29,7 +29,7 @@ def get_file(fname, origin, untar=False):
|
||||
else:
|
||||
progbar.update(count*block_size)
|
||||
|
||||
urllib.urlretrieve(origin, fpath, dl_progress)
|
||||
urlretrieve(origin, fpath, dl_progress)
|
||||
progbar = None
|
||||
|
||||
if untar:
|
||||
|
2
setup.py
2
setup.py
@ -10,4 +10,4 @@ setup(name='Keras',
|
||||
license='MIT',
|
||||
packages=find_packages(),
|
||||
# TODO: dependencies
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user