[PyQt] pylupdate4 bug?

Michele Petrazzo - Unipex michele.petrazzo at unipex.it
Sat Nov 14 15:28:36 GMT 2009


Hi,
just discovered that pylupdate4 has a problem with empty docstring. If I
forgot to write at least one character inside the docstring space,
pylupdate4 stops to look for new string translation.

class Main(Qtclass):
     def __init__(self):
         """"""

     def test(self):
         """simple docstring"""
         return self.trUtf8("test")

generate:

pylupdate4: main.py:9: Unterminated string
pylupdate4: Updating 'i18n/i18nit.ts'...
pylupdate4:     Found 0 source texts (0 new and 0 already existing)

adding a simgle char ("a") to the first docstring:

pylupdate4: Updating 'i18n/i18nit.ts'...
pylupdate4:     Found 1 source text (1 new and 0 already existing)

Thanks,
Michele


More information about the PyQt mailing list