write text to file method: 'a'-append, 'w'-overwrite
(file_name, method, text)
| 11 | |
| 12 | |
| 13 | def write_text(file_name, method, text): |
| 14 | """ |
| 15 | write text to file |
| 16 | method: 'a'-append, 'w'-overwrite |
| 17 | """ |
| 18 | with open(file_name, method, encoding='utf-8') as f: |
| 19 | f.write(text) |
| 20 | |
| 21 | |
| 22 | def write_ranking_repo(file_name, method, repos): |
no outgoing calls
no test coverage detected