File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -179,16 +179,16 @@ def parse_args():
179
179
# Handle some invalid argument combinations
180
180
if '-' in args .path and len (args .path ) != 1 :
181
181
sys .stderr .write ('error: multiple path arguments, reading from stdin not allowed\n ' )
182
- exit (1 )
182
+ sys . exit (1 )
183
183
if '-' in args .path and args .in_place :
184
184
sys .stderr .write ('error: reading from stdin, --in-place is not valid\n ' )
185
- exit (1 )
185
+ sys . exit (1 )
186
186
if len (args .path ) > 1 and not args .in_place :
187
187
sys .stderr .write ('error: multiple path arguments, --in-place required\n ' )
188
- exit (1 )
188
+ sys . exit (1 )
189
189
if len (args .path ) == 1 and os .path .isdir (args .path [0 ]) and not args .in_place :
190
190
sys .stderr .write ('error: path ' + args .path [0 ] + ' is a directory, --in-place required\n ' )
191
- exit (1 )
191
+ sys . exit (1 )
192
192
193
193
return args
194
194
You can’t perform that action at this time.
0 commit comments