summaryrefslogtreecommitdiff
path: root/site_scons
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2019-04-11 15:32:45 -0400
committerMathew Robinson <chasinglogic@gmail.com>2019-04-12 10:59:55 -0400
commit3b94354b60bb9f3be1a73998f72b933dbab6a217 (patch)
tree5ee4c82deb01b707974595a4ee00bb3e12b90ef6 /site_scons
parentfd2e3b54a3e3ad7daf1ce4f7ef6b6e125a6d2820 (diff)
downloadmongo-3b94354b60bb9f3be1a73998f72b933dbab6a217.tar.gz
SERVER-40600 Move encoding kwarg to open call
Diffstat (limited to 'site_scons')
-rw-r--r--site_scons/site_tools/dagger/graph.py4
1 files changed, 2 insertions, 2 deletions
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 ("<Number of Nodes : {0}, Number of Edges : {1}, "