(filename, stepsize = STEPSIZE, tabsize = TABSIZE, expandtabs = EXPANDTABS)
| 388 | # end def make_backup |
| 389 | |
| 390 | def complete_file(filename, stepsize = STEPSIZE, tabsize = TABSIZE, expandtabs = EXPANDTABS): |
| 391 | with open(filename, 'r') as f: |
| 392 | source = f.read() |
| 393 | # end with |
| 394 | result = complete_string(source, stepsize, tabsize, expandtabs) |
| 395 | if source == result: return 0 |
| 396 | # end if |
| 397 | make_backup(filename) |
| 398 | with open(filename, 'w') as f: |
| 399 | f.write(result) |
| 400 | # end with |
| 401 | return 1 |
| 402 | # end def complete_file |
| 403 | |
| 404 | def delete_file(filename, stepsize = STEPSIZE, tabsize = TABSIZE, expandtabs = EXPANDTABS): |
nothing calls this directly
no test coverage detected