Merge patch from Bug 449803 so that input and output filenames must be different

This commit is contained in:
JSCHILL1 2009-10-15 13:48:29 -05:00
parent 20fe836041
commit 4b96613a5d
2 changed files with 5 additions and 1 deletions

View file

@ -13,9 +13,11 @@
<header>
<h2><a href="#0.21">Version 0.21</a></h2>
</header>
<p>TBD</p>
<p>Sep 27th, 2009</p>
<ul>
<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/427309">Bug 427309</a> by updated Scour inkscape extension file to include yocto_css.py</li>
<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/435689">Bug 435689</a> by properly preserving whitespace in XML serialization</li>
<li>Fix <a href="https://bugs.launchpad.net/scour/+bug/436569">Bug 436569</a> by getting xlink:href prefix correct with invalid SVG</li>
</ul>
</section>

View file

@ -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)