Lines Matching refs:f
64 log.dbg(f" - getting licenses for {filePath}")
66 with open(filePath, "r") as f:
69 for line in f:
113 for f in pkg.files.values():
114 hashes.append(f.sha1)
147 for f in pkg.files.values():
148 licsConcluded.add(f.concludedLicense)
149 for licInfo in f.licenseInfoInFile:
176 revised.append(f"({lic})")
192 log.inf(f"scanning files in package {pkg.cfg.name} in document {doc.cfg.name}")
195 for f in pkg.files.values():
197 f.relpath = os.path.relpath(f.abspath, pkg.cfg.relativeBaseDir)
200 hashes = getHashes(f.abspath)
202 log.wrn(f"unable to get hashes for file {f.abspath}; skipping")
205 f.sha1 = hSHA1
207 f.sha256 = hSHA256
209 f.md5 = hMD5
212 expression = getExpressionData(f.abspath, cfg.numLinesScanned)
215 f.concludedLicense = expression
216 f.licenseInfoInFile = splitExpression(expression)
219 for lic in f.licenseInfoInFile: