mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-08 10:35:05 -04:00
Fix seven contrib files with Python syntax errors (#5446)
* Fix seven contrib files with Python syntax errors Signed-off-by: cclauss <cclauss@me.com>
This commit is contained in:
parent
d6328e03fd
commit
82d9d524bd
7 changed files with 131 additions and 119 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue