SHOW:
|
|
- or go back to the newest paste.
1 | import fileinput | |
2 | import sys | |
3 | ||
4 | - | for line in fileinput.input(['fizz.py'], inplace=True): |
4 | + | for line in fileinput.input(['fizz.py'], inplace = True): |
5 | - | if fileinput.filelineno() == 3: |
5 | + | if fileinput.filelineno() == 3: |
6 | - | sys.stdout.write('# {l}'.format(l=line)) |
6 | + | sys.stdout.write('# {l}'.format(l = line)) |
7 | else: | |
8 | sys.stdout.write(line) |