Skip to content

Commit 8e40b9b

Browse files
committed
Fix format.
1 parent c4f51cc commit 8e40b9b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/common/CExtContext.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ public abstract class CExtContext {
5151
private static final int METH_KEYWORDS = 0x0002;
5252
private static final int METH_NOARGS = 0x0004;
5353
private static final int METH_O = 0x0008;
54-
@SuppressWarnings("unused")
55-
private static final int METH_CLASS = 0x0010;
56-
@SuppressWarnings("unused")
57-
private static final int METH_STATIC = 0x0020;
54+
@SuppressWarnings("unused") private static final int METH_CLASS = 0x0010;
55+
@SuppressWarnings("unused") private static final int METH_STATIC = 0x0020;
5856
private static final int METH_FASTCALL = 0x0080;
5957

6058
private final PythonContext context;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/PRaiseNode.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,12 @@ PException doPythonBuiltinClass(PythonBuiltinClass exceptionType, @SuppressWarni
165165

166166
@Specialization(guards = {"isNoValue(cause)"})
167167
PException doBuiltinClass(PythonBuiltinClass exceptionType, @SuppressWarnings("unused") PNone cause, String format, Object[] arguments,
168-
@Shared("factory") @Cached PythonObjectFactory factory,
169-
@Shared("language") @CachedLanguage PythonLanguage language) {
168+
@Shared("factory") @Cached PythonObjectFactory factory,
169+
@Shared("language") @CachedLanguage PythonLanguage language) {
170170
assert format != null;
171171
throw doBuiltinType(exceptionType.getType(), cause, format, arguments, factory, language);
172172
}
173173

174-
175174
@Specialization(guards = {"isNoValue(cause)", "isNoValue(format)", "arguments.length == 0"})
176175
PException doPythonManagedClass(PythonManagedClass exceptionType, @SuppressWarnings("unused") PNone cause, @SuppressWarnings("unused") PNone format, @SuppressWarnings("unused") Object[] arguments,
177176
@Shared("factory") @Cached PythonObjectFactory factory,

0 commit comments

Comments
 (0)