mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
python: Migrate open statements to use with.
This is low priority, but it's nice to be consistently using the best practice pattern. Fixes: #12419.
This commit is contained in:
@@ -56,7 +56,8 @@ def get_provisioning_status():
|
||||
# their own dependencies and not running provision.
|
||||
return True, None
|
||||
|
||||
version = open(version_file).read().strip()
|
||||
with open(version_file, 'r') as f:
|
||||
version = f.read().strip()
|
||||
|
||||
# Normal path for people that provision--we're all good!
|
||||
if version == PROVISION_VERSION:
|
||||
|
||||
Reference in New Issue
Block a user