Skip to content

Commit 9517955

Browse files
committed
Fix dict.__missing__
1 parent 408eece commit 9517955

File tree

1 file changed

+1
-3
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/dict

1 file changed

+1
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/dict/DictBuiltins.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
import com.oracle.graal.python.builtins.objects.function.PKeyword;
6969
import com.oracle.graal.python.builtins.objects.mappingproxy.PMappingproxy;
7070
import com.oracle.graal.python.builtins.objects.method.PBuiltinMethod;
71-
import com.oracle.graal.python.builtins.objects.method.PMethod;
7271
import com.oracle.graal.python.builtins.objects.object.PythonObjectLibrary;
7372
import com.oracle.graal.python.builtins.objects.str.PString;
7473
import com.oracle.graal.python.builtins.objects.tuple.PTuple;
@@ -340,8 +339,7 @@ protected Object misssing(VirtualFrame frame, Object self, Object key,
340339
}
341340

342341
protected boolean hasMissing(Object self, PythonObjectLibrary lib) {
343-
Object missing = lib.lookupAttributeOnType(self, __MISSING__);
344-
return missing != PNone.NO_VALUE && missing instanceof PMethod;
342+
return lib.lookupAttributeOnType(self, __MISSING__) != NO_VALUE;
345343
}
346344
}
347345

0 commit comments

Comments
 (0)