diff --git a/python/core/auto_generated/geometry/qgsmulticurve.sip.in b/python/core/auto_generated/geometry/qgsmulticurve.sip.in index fee3d1136d2..686d055ef00 100644 --- a/python/core/auto_generated/geometry/qgsmulticurve.sip.in +++ b/python/core/auto_generated/geometry/qgsmulticurve.sip.in @@ -58,7 +58,7 @@ Returns a copy of the multi curve, where each component curve has had its line d SIP_PYOBJECT __repr__(); %MethodCode - QString str = QStringLiteral( "" ).arg( sipCpp->asWkt() ); + QString str = QStringLiteral( "" ).arg( sipCpp->asWkt() ); sipRes = PyUnicode_FromString( str.toUtf8().data() ); %End diff --git a/src/core/geometry/qgsmulticurve.h b/src/core/geometry/qgsmulticurve.h index 3a24896400b..f13280eb166 100644 --- a/src/core/geometry/qgsmulticurve.h +++ b/src/core/geometry/qgsmulticurve.h @@ -76,7 +76,7 @@ class CORE_EXPORT QgsMultiCurve: public QgsGeometryCollection #ifdef SIP_RUN SIP_PYOBJECT __repr__(); % MethodCode - QString str = QStringLiteral( "" ).arg( sipCpp->asWkt() ); + QString str = QStringLiteral( "" ).arg( sipCpp->asWkt() ); sipRes = PyUnicode_FromString( str.toUtf8().data() ); % End #endif diff --git a/tests/src/python/test_python_repr.py b/tests/src/python/test_python_repr.py index 73a396ac23d..60dfaa06526 100644 --- a/tests/src/python/test_python_repr.py +++ b/tests/src/python/test_python_repr.py @@ -70,7 +70,7 @@ class TestPython__repr__(unittest.TestCase): mc.addGeometry(cs) cs2 = QgsCircularString(QgsPoint(4, 20), QgsPoint(5, 22), QgsPoint(6, 24)) mc.addGeometry(cs2) - self.assertEqual(mc.__repr__(), '') + self.assertEqual(mc.__repr__(), '') def testQgsMultilineStringRepr(self): ml = QgsGeometry.fromMultiPolylineXY(