Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import fileinput
- import sys
- for line in fileinput.input(['fizz.py'], inplace = True):
- if fileinput.filelineno() == 3:
- line=line.replace("# @profile", "@profile")
- sys.stdout.write(line)
- else:
- sys.stdout.write(line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement