Skip to content

Commit 0409206

Browse files
committed
fix style
1 parent 5e4bc6d commit 0409206

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_slice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2018, Oracle and/or its affiliates.
1+
# Copyright (c) 2018, 2019, Oracle and/or its affiliates.
22
# Copyright (c) 2013, Regents of the University of California
33
#
44
# All rights reserved.

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,14 @@ public boolean canBeIndex(Object receiver) {
230230
}
231231

232232
/**
233-
* Coerces the receiver into an index-sized integer, using the same
234-
* mechanism as {@code PyNumber_AsSsize_t}:
233+
* Coerces the receiver into an index-sized integer, using the same mechanism as
234+
* {@code PyNumber_AsSsize_t}:
235235
* <ol>
236-
* <li> Call <code>__index__</code> if the object is not already a Python int (resp. <code>PyNumber_Index</code>) </li>
237-
* <li> Do a hard cast to long as per <code>PyLong_AsSsize_t</code> </li>
236+
* <li>Call <code>__index__</code> if the object is not already a Python int (resp.
237+
* <code>PyNumber_Index</code>)</li>
238+
* <li>Do a hard cast to long as per <code>PyLong_AsSsize_t</code></li>
238239
* </ol>
240+
*
239241
* @return <code>-1</code> if the cast fails or overflows the <code>int</code> range
240242
*/
241243
public int asSizeWithState(Object receiver, LazyPythonClass errorType, ThreadState threadState) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ public final PException raise(PythonBuiltinClassType type, Exception e) {
7777
}
7878

7979
/**
80-
* Raise an error saying that the {@code result} cannot fit into an
81-
* index-sized integer. Use the specified {@code type} as exception class.
80+
* Raise an error saying that the {@code result} cannot fit into an index-sized integer. Use the
81+
* specified {@code type} as exception class.
8282
*/
8383
public final PException raiseNumberTooLarge(LazyPythonClass type, Object result) {
84-
return execute(type, PNone.NO_VALUE, "cannot fit '%p' into an index-sized integer", new Object[] { result });
84+
return execute(type, PNone.NO_VALUE, "cannot fit '%p' into an index-sized integer", new Object[]{result});
8585
}
8686

8787
public final PException raiseIntegerInterpretationError(Object result) {

0 commit comments

Comments
 (0)