Skip to content
Permalink
Browse files
export value as python string
  • Loading branch information
Koyaani authored and nyalldawson committed Nov 9, 2021
1 parent 6b7d524 commit 6b03097a8744e5c32cd0ef2bf182a9a3646d6c33
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/processing/qgsprocessingparameters.cpp
@@ -3597,7 +3597,7 @@ QString QgsProcessingParameterMatrix::valueAsPythonString( const QVariant &value
else if ( v2.toString().isEmpty() )
parts2 << QStringLiteral( "''" );
else
parts2 << v2.toString();
parts2 << QgsProcessingUtils::stringToPythonLiteral( v2.toString() );
}
parts << parts2.join( ',' ).prepend( '[' ).append( ']' );
}
@@ -3608,7 +3608,7 @@ QString QgsProcessingParameterMatrix::valueAsPythonString( const QVariant &value
else if ( v.toString().isEmpty() )
parts << QStringLiteral( "''" );
else
parts << v.toString();
parts << QgsProcessingUtils::stringToPythonLiteral( v.toString() );
}
}

0 comments on commit 6b03097

Please sign in to comment.