Skip to content

Commit f6a84b2

Browse files
committed
Replace writelines with write
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent fe3afa3 commit f6a84b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/source/test-protocol.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Run this python script to generate text file with expected purls
268268
scancode_purls.append(package["purl"])
269269
scancode_purls = sorted(scancode_purls)
270270
with open("~/tmp/pyinsp-example/codebase/output/scan.txt", "w") as f:
271-
f.writelines("\n".join(scancode_purls))
271+
f.write("\n".join(scancode_purls))
272272

273273

274274
The output is a list of expected purls with a version.
@@ -294,7 +294,7 @@ Run this python script to generate text file with actual purls
294294
py_insp_purls.append(package["package"])
295295
py_insp_purls = sorted(py_insp_purls)
296296
with open("~/tmp/pyinsp-example/codebase/output/py-insp.txt", "w") as f:
297-
f.writelines("\n".join(py_insp_purls))
297+
f.write("\n".join(py_insp_purls))
298298

299299

300300
The output is a list of actual purls with a version.

0 commit comments

Comments
 (0)