diff options
author | Helmut Grohne <helmut@subdivi.de> | 2016-05-24 17:50:57 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2016-05-24 17:50:57 +0200 |
commit | 89378e07e16c071efed82753cc16fbe2b9fd1598 (patch) | |
tree | 322110baa2ee6f6892e46e0e8ece5c4fa9e1d46d /importpkg.py | |
parent | bf1824d49d9fd2c19b4258184005822eacf41666 (diff) | |
download | debian-dedup-89378e07e16c071efed82753cc16fbe2b9fd1598.tar.gz |
use urlopen from urllib2 on py2
This causes non-successful fetches to result in HTTPErrors like it does
in py3 already.
Diffstat (limited to 'importpkg.py')
-rwxr-xr-x | importpkg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/importpkg.py b/importpkg.py index b01fad3..ce4a446 100755 --- a/importpkg.py +++ b/importpkg.py @@ -12,7 +12,7 @@ import zlib try: from urllib.request import urlopen except ImportError: - from urllib import urlopen + from urllib2 import urlopen import yaml |