Skip to content

Commit

Permalink
Merge pull request #56 from sebix/fix-urllib
Browse files Browse the repository at this point in the history
Fix urlretrieve for py3
  • Loading branch information
toabctl committed Aug 10, 2016
2 parents 8a794da + 9caa7aa commit c9e06f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py2pack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import re
import sys
import urllib
from six.moves.urllib.request import urlretrieve
from six.moves import xmlrpc_client
import jinja2
import warnings
Expand Down Expand Up @@ -78,7 +79,7 @@ def fetch(args):
sys.exit(1)
print('downloading package {0}-{1}...'.format(args.name, args.version))
print('from {0}'.format(url['url']))
urllib.urlretrieve(url['url'], url['filename'])
urlretrieve(url['url'], url['filename'])


def _run_setup_py(tarfile, data):
Expand Down

0 comments on commit c9e06f4

Please sign in to comment.