Skip to content

Commit fa513b9

Browse files
committed
fix style
1 parent 3613f82 commit fa513b9

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ String doL(long x) {
291291

292292
@Specialization
293293
String doD(double x,
294-
@Cached PRaiseNode raise) {
294+
@Cached PRaiseNode raise) {
295295
throw raise.raiseIntegerInterpretationError(x);
296296
}
297297

@@ -326,9 +326,10 @@ String doO(VirtualFrame frame, Object x,
326326
}
327327
}
328328
CompilerDirectives.transferToInterpreter();
329-
/* It should not be possible to get here, as
330-
PyNumber_Index already has a check for the same
331-
condition */
329+
/*
330+
* It should not be possible to get here, as PyNumber_Index already has a check for the
331+
* same condition
332+
*/
332333
throw raise(PythonBuiltinClassType.ValueError, "PyNumber_ToBase: index not int");
333334
}
334335
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/object/PythonObjectLibrary.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ public boolean canBeIndex(Object receiver) {
232232
/**
233233
* Coerces the receiver into an index just like {@code PyNumber_AsIndex}.
234234
*
235-
* Return a Python int from the receiver. Raise TypeError if the result is
236-
* not an int or if the object cannot be interpreted as an index.
235+
* Return a Python int from the receiver. Raise TypeError if the result is not an int or if the
236+
* object cannot be interpreted as an index.
237237
*/
238238
public Object asIndexWithState(Object receiver, ThreadState threadState) {
239239
if (threadState == null) {

0 commit comments

Comments
 (0)