diff options
author | Andreas Beckermann <[email protected]> | 2019-09-12 14:56:35 +0200 |
---|---|---|
committer | Andreas Beckermann <[email protected]> | 2019-09-27 08:24:28 +0200 |
commit | 45fdb9c06d8934e5c8de208e584d4c35943cd3b8 (patch) | |
tree | 3b3751e80a5f936de51592c14c717c3c5b7a236d /examples/declarative/extending/chapter2-methods | |
parent | 35bc1078b4c130cd24282ce6c770c195b1cfd76f (diff) |
Remove trailing whitespace from __repr__
QDebug normally prints a trailing ' ', however the repr implementation
does not expect so. Remove the trailing space, if it is there.
This makes sure that e.g.
PySide2.QtCore.QRegularExpression()
is printed as
<PySide2.QtCore.QRegularExpression("", QRegularExpression::PatternOptions("NoPatternOption")) at 0x1067a5d20>
instead of
<PySide2.QtCore.QRegularExpression("", QRegularExpression::PatternOptions("NoPatternOption")) at 0x1067a5d20>
(note the double space before 'at')
Change-Id: I6c088069a6a8ca42933a442cce7b576327a9d151
Reviewed-by: Christian Tismer <[email protected]>
Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'examples/declarative/extending/chapter2-methods')
0 files changed, 0 insertions, 0 deletions