diff options
author | cclauss <cclauss@me.com> | 2019-06-17 19:21:30 +0200 |
---|---|---|
committer | Amber Brown <hawkowl@atleastfornow.net> | 2019-06-18 03:21:30 +1000 |
commit | 82d9d524bdb8ce2f54855589e44ce3a20ba1af37 (patch) | |
tree | 30b270bb9366314fe5d9868547675c2bbad2f632 /contrib/graph/graph.py | |
parent | Merge pull request #5477 from matrix-org/babolivier/third_party_rules_3pid (diff) | |
download | synapse-82d9d524bdb8ce2f54855589e44ce3a20ba1af37.tar.xz |
Fix seven contrib files with Python syntax errors (#5446)
* Fix seven contrib files with Python syntax errors Signed-off-by: cclauss <cclauss@me.com>
Diffstat (limited to 'contrib/graph/graph.py')
-rw-r--r-- | contrib/graph/graph.py | 5 |
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]) |