From 41593478be1e81ab261670ca67366ca192b2c0be Mon Sep 17 00:00:00 2001 From: Osama Abbas <11368432+Tes3awy@users.noreply.github.com> Date: Thu, 4 Jan 2024 21:39:27 +0200 Subject: [PATCH] Add newline keyword arg --- imcsdk/apis/server/inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imcsdk/apis/server/inventory.py b/imcsdk/apis/server/inventory.py index d18081d9..ef53262e 100644 --- a/imcsdk/apis/server/inventory.py +++ b/imcsdk/apis/server/inventory.py @@ -216,7 +216,7 @@ def _get_inventory_csv(inventory, file_name, spec=inventory_spec): if file_name is None: raise ImcOperationError("Inventory collection", "file_name is a required parameter") - f = csv.writer(open(file_name, "w")) + f = csv.writer(open(file_name, "w", newline="")) x = inventory for comp in spec: