appstore/generator/portableCode/Network.py

9 lines
165 B
Python

import ssl
from urllib.request import urlopen
HttpsContext = ssl.create_default_context()
def Download(Url):
return urlopen(Url, context=HttpsContext).read()