Commit 9f3fb236 authored by André Anjos's avatar André Anjos 💬
Browse files

[python2] Fix urlopen usage

parent 1d621fbb
......@@ -78,7 +78,8 @@ class Database():
if sys.version_info[0] < 3:
# python2 technique for downloading a file
from urllib2 import urlopen
with urlopen(url) as response, open(tmp_file, 'wb') as out_file:
with open(tmp_file, 'wb') as out_file:
response = urlopen(url)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment