summary refs log tree commit diff
path: root/contrib/graph/graph.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-02-10 18:47:16 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-02-10 18:47:16 +0000
commitbde5a6b0cc4b6c2461a16b088d2f1367fe5798fc (patch)
treed8deacef525eda60e3edcceb648c467a2f3cecd5 /contrib/graph/graph.py
parentMerge pull request #5477 from matrix-org/babolivier/third_party_rules_3pid (diff)
parentFix seven contrib files with Python syntax errors (#5446) (diff)
downloadsynapse-bde5a6b0cc4b6c2461a16b088d2f1367fe5798fc.tar.xz
Fix seven contrib files with Python syntax errors (#5446)
Diffstat (limited to 'contrib/graph/graph.py')
-rw-r--r--contrib/graph/graph.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/graph/graph.py b/contrib/graph/graph.py

index afd1d446b4..e174ff5026 100644 --- a/contrib/graph/graph.py +++ b/contrib/graph/graph.py
@@ -1,3 +1,4 @@ +from __future__ import print_function # Copyright 2014-2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -48,7 +49,7 @@ def make_graph(pdus, room, filename_prefix): c = colors.pop() color_map[o] = c except: - print "Run out of colours!" + print("Run out of colours!") color_map[o] = "black" graph = pydot.Dot(graph_name="Test") @@ -93,7 +94,7 @@ def make_graph(pdus, room, filename_prefix): end_name = make_name(i, o) if end_name not in node_map: - print "%s not in nodes" % end_name + print("%s not in nodes" % end_name) continue edge = pydot.Edge(node_map[start_name], node_map[end_name])