[PyKDE] pyuic4 generates invalid source code for files without translatable strings

Lukáš Lalinský lalinsky at gmail.com
Sat Oct 21 14:37:36 BST 2006


If I have an UI file without any translatable strings, pyuic4 generates method
retranslateUi without a body:

    def retranslateUi(self, %s):

which causes is a syntax error. Patch that adds a 'pass' in such situations
attached.

-Lukáš
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyuic4-no-strings.diff
Type: text/x-patch
Size: 513 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20061021/13e34adb/pyuic4-no-strings.bin


More information about the PyQt mailing list