[PyQt] Simple patch for pylupdate4

Florent Rougon f.rougon at free.fr
Sun Sep 1 21:56:10 BST 2013


Phil Thompson <phil at riverbankcomputing.com> wrote:

> Done - something similar.

Thank you... and sorry for arriving a bit late. In case you find it
useful, here is a better patch that performs universal newline
translation at the basic level (i.e., not only when parsing a Python
string).

 As experience shows, pylupdate4 does not handle .py files correctly
unless the end of line style is Unix (\n is assumed to be the only line
terminator except when parsing .ui files). This is true even out of the
context of a backslash at the end of a line. This patch fixes this too
(tested with the 3 kinds of EOL style).

Regards

-- 
Florent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pylupdate_backslash_newline_handling.diff
Type: text/x-diff
Size: 3364 bytes
Desc: Universal newline + backslash-newline handling
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130901/cbc73078/attachment.diff>


More information about the PyQt mailing list