File tree Expand file tree Collapse file tree
docs/content/en/open_source/contributing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ Example of use:
177177from cvss.cvss3 import CVSS3
178178import cvss.parser
179179vectors = cvss.parser.parse_cvss_from_text(" CVSS:3.0/S:C/C:H/I:H/A:N/AV:P/AC:H/PR:H/UI:R/E:H/RL:O/RC:R/CR:H/IR:X/AR:X/MAC:H/MPR:X/MUI:X/MC:L/MA:X" )
180- if len (vectors) > 0 and type (vectors[0 ]) == CVSS3 :
180+ if len (vectors) > 0 and type (vectors[0 ]) is CVSS3 :
181181 print (vectors[0 ].severities()) # this is the 3 severities
182182
183183 cvssv3 = vectors[0 ].clean_vector()
@@ -192,7 +192,7 @@ Good example:
192192
193193``` python
194194vectors = cvss.parser.parse_cvss_from_text(item[' cvss_vect' ])
195- if len (vectors) > 0 and type (vectors[0 ]) == CVSS3 :
195+ if len (vectors) > 0 and type (vectors[0 ]) is CVSS3 :
196196 finding.cvss = vectors[0 ].clean_vector()
197197 finding.severity = vectors[0 ].severities()[0 ] # if your tool does generate severity
198198```
You can’t perform that action at this time.
0 commit comments