Advertisement
Guest User

Untitled

a guest
Nov 19th, 2012
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. import fileinput
  2. import sys
  3.  
  4. for line in fileinput.input(['fizz.py'], inplace = True):
  5.    
  6.     if fileinput.filelineno() == 3:
  7.         line=line.replace("# @profile", "@profile")
  8.         sys.stdout.write(line)
  9.     else:
  10.         sys.stdout.write(line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement