Skip to content

Commit 132f515

Browse files
committed
python: fix super() invocations
Problem: some Python resourcegraph super() invocations use the old Python 2 super() syntax with arguments. Use the Python 3 syntax with no arguments.
1 parent 5f7da9e commit 132f515

File tree

1 file changed

+3
-3
lines changed
  • src/python/fluxion/resourcegraph

1 file changed

+3
-3
lines changed

src/python/fluxion/resourcegraph/V1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(
7171
}
7272
if status != 0: # reduce the footprint by only adding status if nonzero
7373
metadata["status"] = status
74-
super(FluxionResourcePoolV1, self).__init__(vtxId, metadata=metadata)
74+
super().__init__(vtxId, metadata=metadata)
7575

7676
@staticmethod
7777
def constraints(resType):
@@ -88,7 +88,7 @@ def __init__(self, parentId, vtxId):
8888
parentId -- Parent vertex Id
8989
vtxId -- Child vertex Id
9090
"""
91-
super(FluxionResourceRelationshipV1, self).__init__(
91+
super().__init__(
9292
parentId,
9393
vtxId,
9494
directed=True,
@@ -106,7 +106,7 @@ def __init__(self, rv1):
106106
rv1 -- RV1 Dictorary that conforms to Flux RFC 20:
107107
Resource Set Specification Version 1
108108
"""
109-
super(FluxionResourceGraphV1, self).__init__()
109+
super().__init__()
110110
self._uniqId = 0
111111
self._rv1NoSched = rv1
112112
self._encode()

0 commit comments

Comments
 (0)