From e8e08a301c95fd6a719c4d971e4332adb3f449df Mon Sep 17 00:00:00 2001 From: Bryant Howell Date: Thu, 21 May 2020 16:16:38 -0500 Subject: [PATCH] FIle needed to be opened with newline='' for CSV writer in Python 3 --- examples/permissions_auditing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/permissions_auditing.py b/examples/permissions_auditing.py index 7ca55ea..69c8c3e 100644 --- a/examples/permissions_auditing.py +++ b/examples/permissions_auditing.py @@ -11,7 +11,7 @@ default.enable_logging(logger) default.signin() -with open('permissions_audit.txt', 'w') as output_file: +with open('permissions_audit.txt', 'w', newline='') as output_file: # Get all sites content urls for logging in site_content_urls = default.query_all_site_content_urls()