Merge patch from Bug 449803 so that input and output filenames must be different
This commit is contained in:
parent
20fe836041
commit
4b96613a5d
2 changed files with 5 additions and 1 deletions
2
scour.py
2
scour.py
|
|
@ -2375,6 +2375,8 @@ def parse_args(args=None):
|
|||
_options_parser.error("Can't have negative significant digits, see --help")
|
||||
if not options.indent_type in ["tab", "space", "none"]:
|
||||
_options_parser.error("Invalid value for --indent, see --help")
|
||||
if options.infilename and options.outfilename and options.infilename == options.outfilename:
|
||||
_options_parser.error("Input filename is the same as output filename")
|
||||
|
||||
if options.infilename:
|
||||
infile = maybe_gziped_file(options.infilename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue