aboutsummaryrefslogtreecommitdiff
path: root/core/make_binders.py
diff options
context:
space:
mode:
authorRémi Verschelde2018-03-13 11:49:58 +0100
committerGitHub2018-03-13 11:49:58 +0100
commit4287c7822b8aa06b069e42b44b9aa73396db62f5 (patch)
tree2db4764933bbf252b8ba0007816527265f4dd79d /core/make_binders.py
parent6e491ff283b7cfa90a1e27e96edb0b7c9dececa6 (diff)
parent272ecddb2859e3c184886bc2d142e2e329b8ae83 (diff)
downloadgodot-4287c7822b8aa06b069e42b44b9aa73396db62f5.tar.gz
godot-4287c7822b8aa06b069e42b44b9aa73396db62f5.tar.zst
godot-4287c7822b8aa06b069e42b44b9aa73396db62f5.zip
Diffstat (limited to 'core/make_binders.py')
-rw-r--r--core/make_binders.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/core/make_binders.py b/core/make_binders.py
index 1e581f8ce..6a7602cd5 100644
--- a/core/make_binders.py
+++ b/core/make_binders.py
@@ -265,10 +265,8 @@ def run(target, source, env):
else:
text += t
- f = open(target[0].path, "w")
- f.write(text)
- f.close()
+ with open(target[0].path, "w") as f:
+ f.write(text)
- f = open(target[1].path, "w")
- f.write(text_ext)
- f.close()
+ with open(target[1].path, "w") as f:
+ f.write(text_ext)