See if we can mollify CodeQL

This commit is contained in:
Kovid Goyal 2021-08-16 22:53:46 +05:30
parent f0e7344bc8
commit f67995d5d3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 4 deletions

View File

@ -95,10 +95,10 @@ def copy_libs(env):
def add_ca_certs(env):
print('Downloading CA certs...')
from urllib.request import urlopen
certs = urlopen(kitty_constants['cacerts_url']).read()
cdata = urlopen(kitty_constants['cacerts_url']).read()
dest = os.path.join(env.lib_dir, 'cacert.pem')
with open(dest, 'wb') as f:
f.write(certs)
f.write(cdata)
def copy_python(env):

View File

@ -185,10 +185,10 @@ class Freeze(object):
def add_ca_certs(self):
print('\nDownloading CA certs...')
from urllib.request import urlopen
certs = urlopen(kitty_constants['cacerts_url']).read()
cdata = urlopen(kitty_constants['cacerts_url']).read()
dest = os.path.join(self.contents_dir, 'Resources', 'cacert.pem')
with open(dest, 'wb') as f:
f.write(certs)
f.write(cdata)
@flush
def strip_files(self):