Apply modernize transform libmodernize.fixes.fix_file.
This replaces use of file() with open() which is python 3 compatible, and also adds it to our python 3 support test suite.
This commit is contained in:
parent
9db342950e
commit
91d851c448
5 changed files with 11 additions and 11 deletions
|
@ -9,7 +9,7 @@ ccache_data_encoded = sys.argv[3]
|
|||
|
||||
# Update the Kerberos ticket cache file
|
||||
program_name = "zmirror-%s" % (short_user,)
|
||||
with file("/home/zulip/ccache/%s" % (program_name,), "w") as f:
|
||||
with open("/home/zulip/ccache/%s" % (program_name,), "w") as f:
|
||||
f.write(base64.b64decode(ccache_data_encoded))
|
||||
|
||||
# Setup API key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue