Skip to content

Commit 8b29d83

Browse files
committed
minor cleanup
1 parent 9843654 commit 8b29d83

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/FcntlModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/TypeBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ protected Object doItUnboxed(VirtualFrame frame, @SuppressWarnings("unused") PNo
219219
@Specialization(replaces = "doItUnboxed")
220220
protected Object doItUnboxedIndirect(VirtualFrame frame, @SuppressWarnings("unused") PNone noSelf, Object[] arguments, PKeyword[] keywords) {
221221
Object self = arguments[0];
222-
if (self instanceof PythonAbstractClass) {
222+
if (PGuards.isClass(self)) {
223223
return op(frame, (PythonAbstractClass) self, arguments, keywords, false);
224224
} else if (self instanceof PythonBuiltinClassType) {
225-
PythonBuiltinClass actual = getContext().getCore().lookupType((PythonBuiltinClassType) self);
225+
PythonBuiltinClass actual = getBuiltinPythonClass((PythonBuiltinClassType) self);
226226
return op(frame, actual, arguments, keywords, false);
227227
} else {
228228
throw raise(TypeError, "descriptor '__call__' requires a 'type' object but received a '%p'", self);

0 commit comments

Comments
 (0)