4343 "PKG_DOWN_LOC" : "Invalid package download location value '{0}' must be a url or NONE or NOASSERTION" ,
4444 "PKG_FILES_ANALYZED_VALUE" : "FilesAnalyzed must be a boolean value, line: {0}" ,
4545 "PKG_CONC_LIST" : "Package concluded license list must have more than one member" ,
46- "LICS_LIST_MEMBER" : "Declaritive or Conjunctive license set member must be a license url or identifier" ,
46+ "LICS_LIST_MEMBER" : "Declarative or Conjunctive license set member must be a license url or identifier" ,
4747 "PKG_SINGLE_LICS" : "Package concluded license must be a license url or spdx:noassertion or spdx:none." ,
4848 "PKG_LICS_INFO_FILES" : "Package licenseInfoFromFiles must be a license or spdx:none or spdx:noassertion" ,
4949 "FILE_SPDX_ID_VALUE" : 'SPDXID must be "SPDXRef-[idstring]" where [idstring] is a unique string containing '
@@ -159,43 +159,43 @@ def get_extr_license_ident(self, extr_lic):
159159 """
160160 Return a license identifier from an ExtractedLicense or None.
161161 """
162- identifier_tripples = list (
162+ identifier_triples = list (
163163 self .graph .triples ((extr_lic , self .spdx_namespace ["licenseId" ], None ))
164164 )
165165
166- if not identifier_tripples :
166+ if not identifier_triples :
167167 self .error = True
168168 msg = "Extracted license must have licenseId property."
169169 self .logger .log (msg )
170170 return
171171
172- if len (identifier_tripples ) > 1 :
173- self .more_than_one_error ("extracted license identifier_tripples " )
172+ if len (identifier_triples ) > 1 :
173+ self .more_than_one_error ("extracted license identifier_triples " )
174174 return
175175
176- identifier_tripple = identifier_tripples [0 ]
177- _s , _p , identifier = identifier_tripple
176+ identifier_triple = identifier_triples [0 ]
177+ _s , _p , identifier = identifier_triple
178178 return str (identifier )
179179
180180 def get_extr_license_text (self , extr_lic ):
181181 """
182182 Return extracted text from an ExtractedLicense or None.
183183 """
184- text_tripples = list (
184+ text_triples = list (
185185 self .graph .triples ((extr_lic , self .spdx_namespace ["extractedText" ], None ))
186186 )
187- if not text_tripples :
187+ if not text_triples :
188188 self .error = True
189189 msg = "Extracted license must have extractedText property"
190190 self .logger .log (msg )
191191 return
192192
193- if len (text_tripples ) > 1 :
193+ if len (text_triples ) > 1 :
194194 self .more_than_one_error ("extracted license text" )
195195 return
196196
197- text_tripple = text_tripples [0 ]
198- _s , _p , text = text_tripple
197+ text_triple = text_triples [0 ]
198+ _s , _p , text = text_triple
199199 return str (text )
200200
201201 def get_extr_lic_name (self , extr_lic ):
@@ -250,7 +250,7 @@ def parse_only_extr_license(self, extr_lic):
250250 return
251251
252252 # Set fields
253- # FIXME: the constructor of the license should alwas accept a name
253+ # FIXME: the constructor of the license should always accept a name
254254 lic = document .ExtractedLicense (ident )
255255 if text is not None :
256256 lic .text = text
@@ -318,7 +318,7 @@ def parse_package(self, p_term):
318318 """
319319 Parse package fields.
320320 """
321- # Check there is a pacakge name
321+ # Check there is a package name
322322 if not (p_term , self .spdx_namespace ["name" ], None ) in self .graph :
323323 self .error = True
324324 self .logger .log ("Package must have a name." )
@@ -478,7 +478,7 @@ def p_pkg_verif_code(self, p_term, predicate):
478478 try :
479479 self .builder .set_pkg_verif_code (self .doc , str (code ))
480480 except CardinalityError :
481- self .more_than_one_error ("package verificaton code" )
481+ self .more_than_one_error ("package verification code" )
482482 break
483483 # Parse excluded file
484484 for _ , _ , filename in self .graph .triples (
@@ -491,7 +491,7 @@ def p_pkg_verif_code(self, p_term, predicate):
491491 try :
492492 self .builder .set_pkg_excl_file (self .doc , str (filename ))
493493 except CardinalityError :
494- self .more_than_one_error ("package verificaton code excluded file" )
494+ self .more_than_one_error ("package verification code excluded file" )
495495 break
496496
497497 def p_pkg_src_info (self , p_term , predicate ):
@@ -979,7 +979,7 @@ def get_review_date(self, r_term):
979979 )
980980 if len (reviewed_list ) != 1 :
981981 self .error = True
982- msg = "Review must have exactlyone review date"
982+ msg = "Review must have exactly one review date"
983983 self .logger .log (msg )
984984 return
985985 return str (reviewed_list [0 ][2 ])
0 commit comments