diff options
| author | J08nY | 2025-02-03 15:23:14 +0100 |
|---|---|---|
| committer | J08nY | 2025-02-03 15:23:14 +0100 |
| commit | c7c5947258ceba795ddfca3eec3ce2654cc1097b (patch) | |
| tree | d70d5891a437ba318b55aa27dfdd90af8b47d1f7 /src/sec_certs | |
| parent | 1329b41f3cdacfeb67961638015e4ee9f1d47aad (diff) | |
| download | sec-certs-c7c5947258ceba795ddfca3eec3ce2654cc1097b.tar.gz sec-certs-c7c5947258ceba795ddfca3eec3ce2654cc1097b.tar.zst sec-certs-c7c5947258ceba795ddfca3eec3ce2654cc1097b.zip | |
Add __str__ to ProtectionProfile
Diffstat (limited to 'src/sec_certs')
| -rw-r--r-- | src/sec_certs/sample/protection_profile.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sec_certs/sample/protection_profile.py b/src/sec_certs/sample/protection_profile.py index ad5cea25..31dedcc2 100644 --- a/src/sec_certs/sample/protection_profile.py +++ b/src/sec_certs/sample/protection_profile.py @@ -216,6 +216,9 @@ class ProtectionProfile( "|".join([self.web_data.category, self.web_data.name, self.web_data.version]) ) + def __str__(self) -> str: + return f"PP: {self.web_data.name}, dgst: {self.dgst}" + @property def label_studio_title(self) -> str: return self.web_data.name |
