Show More
@@ -276,15 +276,13 b' def main():' | |||||
276 | help='edit files in place') |
|
276 | help='edit files in place') | |
277 | ap.add_argument('--dictiter', action='store_true', default=False, |
|
277 | ap.add_argument('--dictiter', action='store_true', default=False, | |
278 | help='rewrite iteritems() and itervalues()'), |
|
278 | help='rewrite iteritems() and itervalues()'), | |
279 | ap.add_argument('--treat-as-kwargs', nargs="+", |
|
279 | ap.add_argument('--treat-as-kwargs', nargs="+", default=[], | |
280 | help="ignore kwargs-like objects"), |
|
280 | help="ignore kwargs-like objects"), | |
281 | ap.add_argument('files', metavar='FILE', nargs='+', help='source file') |
|
281 | ap.add_argument('files', metavar='FILE', nargs='+', help='source file') | |
282 | args = ap.parse_args() |
|
282 | args = ap.parse_args() | |
283 | opts = { |
|
283 | opts = { | |
284 | 'dictiter': args.dictiter, |
|
284 | 'dictiter': args.dictiter, | |
285 | 'treat-as-kwargs': set( |
|
285 | 'treat-as-kwargs': set(args.treat_as_kwargs), | |
286 | args.treat_as_kwargs |
|
|||
287 | ) if args.treat_as_kwargs else set() |
|
|||
288 | } |
|
286 | } | |
289 | for fname in args.files: |
|
287 | for fname in args.files: | |
290 | if args.inplace: |
|
288 | if args.inplace: |
General Comments 0
You need to be logged in to leave comments.
Login now