Description:
From SC ScanResultAPI.import_scan
using the example:
with open('example.nessus') as fobj:
sc.scan_instances.import_scan(fobj, 1)
would result in the error:
TypeError: a bytes-like object is required, not 'str'
What works:
with open('example.nessus', 'rb') as fobj:
sc.scan_instances.import_scan(fobj, 1)
To confirm:
Is this an incorrect example or a library issue?