We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b2a7de commit 45ecc84Copy full SHA for 45ecc84
src/packagedcode/models.py
@@ -16,6 +16,7 @@
16
import attr
17
from packageurl import normalize_qualifiers
18
from packageurl import PackageURL
19
+import saneyaml
20
21
from commoncode import filetype
22
from commoncode.datautils import choices
@@ -780,7 +781,7 @@ def populate_license_fields(self):
780
781
)
782
783
if self.extracted_license_statement and not isinstance(self.extracted_license_statement, str):
- self.extracted_license_statement = repr(self.extracted_license_statement)
784
+ self.extracted_license_statement = saneyaml.dump(self.extracted_license_statement)
785
786
def to_dict(self, with_details=True, **kwargs):
787
mapping = super().to_dict(with_details=with_details, **kwargs)
0 commit comments