From 864d39899946930cb726d93b1a47a1e61eab5a26 Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Sun, 8 Jan 2012 21:27:20 +0100 Subject: No need to flush, if we actually _call_ the close method instead of just referring to it --- egg-author.py | 3 +-- 1 file changed, 1 insertion(+), 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: -- cgit v1.2.3