See if we can mollify CodeQL
This commit is contained in:
parent
f0e7344bc8
commit
f67995d5d3
@ -95,10 +95,10 @@ def copy_libs(env):
|
|||||||
def add_ca_certs(env):
|
def add_ca_certs(env):
|
||||||
print('Downloading CA certs...')
|
print('Downloading CA certs...')
|
||||||
from urllib.request import urlopen
|
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')
|
dest = os.path.join(env.lib_dir, 'cacert.pem')
|
||||||
with open(dest, 'wb') as f:
|
with open(dest, 'wb') as f:
|
||||||
f.write(certs)
|
f.write(cdata)
|
||||||
|
|
||||||
|
|
||||||
def copy_python(env):
|
def copy_python(env):
|
||||||
|
|||||||
@ -185,10 +185,10 @@ class Freeze(object):
|
|||||||
def add_ca_certs(self):
|
def add_ca_certs(self):
|
||||||
print('\nDownloading CA certs...')
|
print('\nDownloading CA certs...')
|
||||||
from urllib.request import urlopen
|
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')
|
dest = os.path.join(self.contents_dir, 'Resources', 'cacert.pem')
|
||||||
with open(dest, 'wb') as f:
|
with open(dest, 'wb') as f:
|
||||||
f.write(certs)
|
f.write(cdata)
|
||||||
|
|
||||||
@flush
|
@flush
|
||||||
def strip_files(self):
|
def strip_files(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user