git: 87e881c182dc - main - devel/py-cdg: Fix build with setuptools 58.0.0+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Mar 2022 13:49:54 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=87e881c182dc4518fb6f7b196cf58280b0609bca commit 87e881c182dc4518fb6f7b196cf58280b0609bca Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-03-25 13:32:13 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-03-25 13:38:08 +0000 devel/py-cdg: Fix build with setuptools 58.0.0+ With hat: python --- devel/py-cdg/files/patch-2to3 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/devel/py-cdg/files/patch-2to3 b/devel/py-cdg/files/patch-2to3 new file mode 100644 index 000000000000..5210191bc207 --- /dev/null +++ b/devel/py-cdg/files/patch-2to3 @@ -0,0 +1,16 @@ +--- 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 []: