Hi ,<br><br>I find the pyuic4 4.8.3 will generat more newline characters in each line. 4.8.1 doesn't have this issue.<br><br>Here is a temporary solution for this issue.<br><br> def _generate(self):<br> """ Generate the Python code. """<br>
<br> if sys.hexversion >= 0x03000000:<br> if self._opts.output == '-':<br> from io import TextIOWrapper<br><br>- pyfile = TextIOWrapper(sys.stdout.buffer, encoding='utf8')<br>
+ pyfile = TextIOWrapper(sys.stdout.buffer, encoding='utf8', newline='')<br> else:<br> pyfile = open(self._opts.output, 'wt', encoding='utf8')<br> else:<br>
if self._opts.output == '-':<br> pyfile = sys.stdout<br> else:<br> pyfile = open(self._opts.output, 'wt')<br><br>Hope it can be fixed in the next release. Thanks.<br clear="all">
<br>-- <br>K.Y/Best Regards<br>