mypy: zulip: Fix errors in integrations/zephyr/process_ccache.

This commit is contained in:
Alena Volkova 2017-10-18 02:06:00 -04:00
parent 8becce7c98
commit 671a078137
2 changed files with 1 additions and 2 deletions

View file

@ -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

View file

@ -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