From 671a07813731071406d1207693b2410fc6240508 Mon Sep 17 00:00:00 2001 From: Alena Volkova Date: Wed, 18 Oct 2017 02:06:00 -0400 Subject: [PATCH] mypy: zulip: Fix errors in integrations/zephyr/process_ccache. --- tools/run-mypy | 1 - zulip/integrations/zephyr/process_ccache | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/run-mypy b/tools/run-mypy index 27ee50f..48a1ada 100755 --- a/tools/run-mypy +++ b/tools/run-mypy @@ -20,7 +20,6 @@ sys.path.append(os.path.dirname(TOOLS_DIR)) exclude = """ zulip/integrations/perforce/git_p4.py -zulip/integrations/zephyr/process_ccache zulip/tests/__init__.py zulip/tests/test_default_arguments.py diff --git a/zulip/integrations/zephyr/process_ccache b/zulip/integrations/zephyr/process_ccache index 51cf78f..35f96bb 100755 --- a/zulip/integrations/zephyr/process_ccache +++ b/zulip/integrations/zephyr/process_ccache @@ -10,7 +10,7 @@ ccache_data_encoded = sys.argv[3] # Update the Kerberos ticket cache file program_name = "zmirror-%s" % (short_user,) -with open("/home/zulip/ccache/%s" % (program_name,), "w") as f: +with open("/home/zulip/ccache/%s" % (program_name,), "wb") as f: f.write(base64.b64decode(ccache_data_encoded)) # Setup API key