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
|
|
@ -13,9 +13,11 @@
|
||||||
<header>
|
<header>
|
||||||
<h2><a href="#0.21">Version 0.21</a></h2>
|
<h2><a href="#0.21">Version 0.21</a></h2>
|
||||||
</header>
|
</header>
|
||||||
<p>TBD</p>
|
<p>Sep 27th, 2009</p>
|
||||||
<ul>
|
<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/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>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
|
||||||
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")
|
_options_parser.error("Can't have negative significant digits, see --help")
|
||||||
if not options.indent_type in ["tab", "space", "none"]:
|
if not options.indent_type in ["tab", "space", "none"]:
|
||||||
_options_parser.error("Invalid value for --indent, see --help")
|
_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:
|
if options.infilename:
|
||||||
infile = maybe_gziped_file(options.infilename)
|
infile = maybe_gziped_file(options.infilename)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue