Lines Matching +full:dry +full:- +full:run
3 """cleanfuture [-d][-r][-v] path ...
5 -d Dry run. Analyze, but don't make any changes to, files.
6 -r Recurse. Search for all .py files in subdirectories too.
7 -v Verbose. Print informative msgs.
14 .py files within the directory will be examined, and, if the -r option is
19 does change a file, the changed file is a fixed-point (i.e., running
53 if msg[-1:] != '\n':
66 if o == '-d':
68 elif o == '-r':
70 elif o == '-v':
101 changed = ff.run()
108 print("But this is a dry run, so leaving it alone.")
110 print("%r lines %d-%d" % (file, s+1, e+1))
114 print("-- deleted")
116 print("-- change to:")
144 # Line-getter for tokenize.
155 def run(self): member in FutureFinder
171 # Chew up docstring (if any -- and it may be implicitly catenated!).
183 startline = srow - 1 # tokenize is one-based
215 endline = srow - 1
222 # A feature we don't know about yet -- leave it in.
223 # They'll get a compile-time error when they compile
234 # Rewrite the line if at least one future-feature is obsolete.