File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 12
12
from io import BytesIO
13
13
from io import StringIO
14
14
15
- from spdx .checksum import Checksum , ChecksumAlgorithm
15
+ from spdx .checksum import Checksum
16
+ from spdx .checksum import ChecksumAlgorithm
16
17
from spdx .creationinfo import Tool
17
18
from spdx .document import ExtractedLicense
18
19
from spdx .document import Document
@@ -359,10 +360,10 @@ def write_spdx(
359
360
file_entry .copyright = SPDXNone ()
360
361
361
362
doc .add_file (file_entry )
362
- relationship = Relationship (package .spdx_id + " CONTAINS " + file_entry .spdx_id )
363
+ relationship = Relationship (f' { package .spdx_id } CONTAINS { file_entry .spdx_id } ' )
363
364
doc .add_relationship (relationship )
364
365
365
- if len ( doc .files ) == 0 :
366
+ if not doc .files :
366
367
if as_tagvalue :
367
368
msg = "# No results for package '{}'.\n " .format (package .name )
368
369
else :
You can’t perform that action at this time.
0 commit comments