diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-07-25 09:51:36 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-07-25 09:51:36 +0800 |
commit | 340ce87919897a6c37c95132194c02cf7853a716 (patch) | |
tree | cb6a5715abf82d76a5d44cca440ef85fa7b338bd /Code | |
parent | 279b70370d00d726df3e8ee6502d43402f5fe3fc (diff) |
utils.py: the statistics line must be inside the with context manager in order to be written to the file edges-diff.txt.
Diffstat (limited to 'Code')
-rw-r--r-- | Code/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Code/utils.py b/Code/utils.py index 851fdc6..3a89a8e 100644 --- a/Code/utils.py +++ b/Code/utils.py @@ -34,7 +34,7 @@ def make_new_edges_file(Sold, Snew, fname_new, output_file): f.write(header) for line in result: f.write(line + '\n') - f.write('*** Number of newly added edges: %d. Last modification date: %s. ***\n' % (len(result), datetime.now().strftime('%Y-%m-%d %H:%M'))) + f.write('*** Number of newly added edges: %d. Last modification date: %s. ***\n' % (len(result), datetime.now().strftime('%Y-%m-%d %H:%M'))) if __name__ == '__main__': |