mirror of
https://git.freebsd.org/ports.git
synced 2025-06-26 07:00:31 -04:00
16 lines
594 B
Text
16 lines
594 B
Text
--- cdg/__init__.py.orig 2017-07-20 18:17:28 UTC
|
|
+++ cdg/__init__.py
|
|
@@ -31,11 +31,11 @@ def load(stream, filename):
|
|
cg = yaml.load(stream, Loader=Loader)
|
|
|
|
else:
|
|
- raise ValueError, 'Unhandled file type: %s' % filename
|
|
+ raise ValueError('Unhandled file type: %s' % filename)
|
|
|
|
graph = networkx.DiGraph(comment='Callgraph of %s' % filename)
|
|
|
|
- for (name, props) in cg['functions'].items():
|
|
+ for (name, props) in list(cg['functions'].items()):
|
|
graph.add_node(name)
|
|
|
|
for (k, v) in props['attributes'] if 'attributes' in props else []:
|