aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Bex <peter@more-magic.net>2012-01-08 21:27:20 +0100
committerPeter Bex <peter@more-magic.net>2012-01-08 21:27:20 +0100
commit864d39899946930cb726d93b1a47a1e61eab5a26 (patch)
tree77f29986a4a5964280d162f5c0034c4da3278acb
parent09611c89d2ebb5d300d7862346810dc8cd2bae12 (diff)
downloadhg-egg-author-864d39899946930cb726d93b1a47a1e61eab5a26.tar.gz
No need to flush, if we actually _call_ the close method instead of just referring to it
-rw-r--r--egg-author.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/egg-author.py b/egg-author.py
index e8d58c1..8155c50 100644
--- a/egg-author.py
+++ b/egg-author.py
@@ -178,8 +178,7 @@ def update_meta(ui, repo):
# reopen and write out the new string
mf = repo.wfile(meta_file, 'w')
mf.write(s)
- mf.flush()
- mf.close
+ mf.close()
# Let the user know the file has been updated (or not, if unchanged)
if len(repo.status(match=matchmod.exact('.', '.', [meta_file]))[0]) == 0: