Skip to content

Commit

Permalink
hctgettaef: Update for Python 3 (microsoft#2195)
Browse files Browse the repository at this point in the history
Python 2 was dropped from the project, but this utility still required it.
  • Loading branch information
JasperNV authored and tristanlabelle committed May 21, 2019
1 parent c9b9676 commit cc64a35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/hct/hctgettaef.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import urllib
import urllib.request
import os
import ssl
import zipfile
Expand All @@ -13,7 +13,7 @@

try:
ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
response = urllib.urlopen(url, context=ctx)
response = urllib.request.urlopen(url, context=ctx)
f = open(zipfile_name, 'wb')
f.write(response.read())
f.close()
Expand Down

0 comments on commit cc64a35

Please sign in to comment.