lists.arthurdejong.org
RSS feed

python-pskc branch master updated. 0.5-30-gfcc6cdb

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-pskc branch master updated. 0.5-30-gfcc6cdb



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-pskc".

The branch, master has been updated
       via  fcc6cdb0320cdae1206f2f231c2f5bca56b9b847 (commit)
      from  052f5bcafac580995723108d64545d9d0db3c6b4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-pskc/commit/?id=fcc6cdb0320cdae1206f2f231c2f5bca56b9b847

commit fcc6cdb0320cdae1206f2f231c2f5bca56b9b847
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Sat Dec 23 20:36:41 2017 +0100

    Explicitly close output file in pskc2csv
    
    This ensures that the file descriptor is closed if we opened the file.
    This is not a big problem for the script (because the script exists
    anyway) but causes problems for the tests.

diff --git a/pskc2csv.py b/pskc2csv.py
index ef1d371..b6cba09 100755
--- a/pskc2csv.py
+++ b/pskc2csv.py
@@ -155,6 +155,8 @@ def main():
         csvfile.writerow([
             get_column(key, column[0], args.secret_encoding)
             for column in args.columns])
+    if args.output:
+        output.close()
 
 
 if __name__ == '__main__':  # pragma: no cover

-----------------------------------------------------------------------

Summary of changes:
 pskc2csv.py | 2 ++
 1 file changed, 2 insertions(+)


hooks/post-receive
-- 
python-pskc
-- 
To unsubscribe send an email to
python-pskc-commits-unsubscribe@lists.arthurdejong.org or see
https://lists.arthurdejong.org/python-pskc-commits/