mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-10 13:04:03 +03:00
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):
|
||||
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):
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user