From 9128e502253db9aac346ce25726a23378c07d478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Thu, 16 Sep 2021 15:58:18 +0000 Subject: [PATCH] Fix gate and a related script. pydot2 is not maintained and stopped being installable. pydot is maintained and seems to work the same. Change-Id: Id248d2349c31b4cb4ad82c2afde10787c75081c7 --- requirements.txt | 2 +- tools/universe_dot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 4512eeb93..61f875ca0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ # NOTE(harlowja): For graph generation tool. # # Not currently needed for anything else. -pydot2>=1.0.32 +pydot PyYAML>=3.1.0 six>=1.9.0 yamlordereddictloader diff --git a/tools/universe_dot.py b/tools/universe_dot.py index 6865ef0f7..a5df4bf07 100644 --- a/tools/universe_dot.py +++ b/tools/universe_dot.py @@ -138,5 +138,5 @@ end = time.time() print("Finished in %0.2f seconds" % (end - start)) print("Writing graph to '%s'" % output_dot_file) -with open(output_dot_file, "wb") as fh: +with open(output_dot_file, "w") as fh: fh.write(graph.to_string())