Skip to content

Commit 7a40006

Browse files
committed
fix PythonAbstractObject#getMembers call to keys() method
1 parent 2a0a648 commit 7a40006

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/PythonAbstractObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ public Object getMembers(boolean includeInternal,
534534
@Shared("getClassThis") @Cached GetClassNode getClass,
535535
@Cached PyMappingCheckNode checkMapping,
536536
@Shared("lookup") @Cached PyObjectLookupAttr lookupKeys,
537-
@Cached CallUnaryMethodNode callKeys,
537+
@Cached CallNode callKeys,
538538
@Shared("getItemNode") @Cached PInteropSubscriptNode getItemNode,
539539
@Cached SequenceNodes.LenNode lenNode,
540540
@Cached TypeNodes.GetMroNode getMroNode,
@@ -557,7 +557,7 @@ public Object getMembers(boolean includeInternal,
557557
if (checkMapping.execute(this)) {
558558
Object keysMethod = lookupKeys.execute(null, this, KEYS);
559559
if (keysMethod != PNone.NO_VALUE) {
560-
PList mapKeys = castToList.executeWithGlobalState(callKeys.executeObject(keysMethod, this));
560+
PList mapKeys = castToList.executeWithGlobalState(callKeys.execute(keysMethod));
561561
int len = lenNode.execute(mapKeys);
562562
for (int i = 0; i < len; i++) {
563563
Object key = getItemNode.execute(mapKeys, i);

0 commit comments

Comments
 (0)