From 3b94354b60bb9f3be1a73998f72b933dbab6a217 Mon Sep 17 00:00:00 2001 From: Mathew Robinson Date: Thu, 11 Apr 2019 15:32:45 -0400 Subject: SERVER-40600 Move encoding kwarg to open call --- site_scons/site_tools/dagger/graph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'site_scons') diff --git a/site_scons/site_tools/dagger/graph.py b/site_scons/site_tools/dagger/graph.py index 40c7fd9b2d9..d8d1e6938ee 100644 --- a/site_scons/site_tools/dagger/graph.py +++ b/site_scons/site_tools/dagger/graph.py @@ -158,8 +158,8 @@ class Graph(object): "index": node_index[node]}, "to_node": to_nodes_dicts}) - with open(filename, 'w') as outfile: - json.dump(data, outfile, indent=4, encoding="ascii") + with open(filename, 'w', encoding="ascii") as outfile: + json.dump(data, outfile, indent=4) def __str__(self): return ("