From f67995d5d35acd5db4a9086997a93b82f21b2c6a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 16 Aug 2021 22:53:46 +0530 Subject: [PATCH] See if we can mollify CodeQL --- bypy/linux/__main__.py | 4 ++-- bypy/macos/__main__.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bypy/linux/__main__.py b/bypy/linux/__main__.py index 83e538366..96b75746c 100644 --- a/bypy/linux/__main__.py +++ b/bypy/linux/__main__.py @@ -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): diff --git a/bypy/macos/__main__.py b/bypy/macos/__main__.py index 9bb08b0cb..4e4ec7131 100644 --- a/bypy/macos/__main__.py +++ b/bypy/macos/__main__.py @@ -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):