(filename)
| 371 | # end def reformat_string |
| 372 | |
| 373 | def make_backup(filename): |
| 374 | import os, os.path |
| 375 | backup = filename + '~' |
| 376 | if os.path.lexists(backup): |
| 377 | try: |
| 378 | os.remove(backup) |
| 379 | except OSError: |
| 380 | print("Can't remove backup %r" % (backup,), file=sys.stderr) |
| 381 | # end try |
| 382 | # end if |
| 383 | try: |
| 384 | os.rename(filename, backup) |
| 385 | except OSError: |
| 386 | print("Can't rename %r to %r" % (filename, backup), file=sys.stderr) |
| 387 | # end try |
| 388 | # end def make_backup |
| 389 | |
| 390 | def complete_file(filename, stepsize = STEPSIZE, tabsize = TABSIZE, expandtabs = EXPANDTABS): |
no test coverage detected