()
| 424 | |
| 425 | |
| 426 | def _test(): |
| 427 | import getopt |
| 428 | inplace = False |
| 429 | backup = False |
| 430 | opts, args = getopt.getopt(sys.argv[1:], "ib:") |
| 431 | for o, a in opts: |
| 432 | if o == '-i': inplace = True |
| 433 | if o == '-b': backup = a |
| 434 | for line in input(args, inplace=inplace, backup=backup): |
| 435 | if line[-1:] == '\n': line = line[:-1] |
| 436 | if line[-1:] == '\r': line = line[:-1] |
| 437 | print("%d: %s[%d]%s %s" % (lineno(), filename(), filelineno(), |
| 438 | isfirstline() and "*" or "", line)) |
| 439 | print("%d: %s[%d]" % (lineno(), filename(), filelineno())) |
| 440 | |
| 441 | if __name__ == '__main__': |
| 442 | _test() |
no test coverage detected
searching dependent graphs…