Skip to content

Commit cfacc4a

Browse files
committed
fix style
1 parent 98bfab8 commit cfacc4a

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/runtime/PythonModuleTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2019, Oracle and/or its affiliates.
2+
* Copyright (c) 2017, 2020, Oracle and/or its affiliates.
33
* Copyright (c) 2013, Regents of the University of California
44
*
55
* All rights reserved.

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/PythonBuiltins.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public void initialize(PythonCore core) {
8080
Object builtinDoc = builtin.doc().isEmpty() ? PNone.NONE : builtin.doc();
8181
if (constructsClass != PythonBuiltinClassType.nil) {
8282
assert !builtin.isGetter() && !builtin.isSetter() && !builtin.isClassmethod() && !builtin.isStaticmethod();
83-
// we explicitly do not make these "classmethods" here, since CPython also doesn't for builtin types
83+
// we explicitly do not make these "classmethods" here, since CPython also doesn't
84+
// for builtin types
8485
PBuiltinFunction newFunc = core.factory().createBuiltinFunction(__NEW__, constructsClass, numDefaults(builtin), callTarget);
8586
PythonBuiltinClass builtinClass = core.lookupType(constructsClass);
8687
builtinClass.setAttributeUnsafe(__NEW__, newFunc);

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/str/StringBuiltins.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,8 @@ abstract static class IsSpaceNode extends PythonUnaryBuiltinNode {
17201720
@Specialization
17211721
@TruffleBoundary
17221722
static boolean doString(String self) {
1723-
// we cannot use Character.isWhitespace, because Java doesn't consider non-breaking spaces whitespace
1723+
// we cannot use Character.isWhitespace, because Java doesn't consider non-breaking
1724+
// spaces whitespace
17241725
if (self.length() == 0) {
17251726
return false;
17261727
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/function/builtins/WrapTpNew.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ public WrapTpNew(BuiltinCallNode func) {
8383
public Object execute(VirtualFrame frame) {
8484
Object arg0;
8585
try {
86-
arg0 = PArguments.getArgument(frame, 0); // should always succeed, since the signature check was already done
86+
arg0 = PArguments.getArgument(frame, 0); // should always succeed, since the signature
87+
// check was already done
8788
} catch (ArrayIndexOutOfBoundsException e) {
8889
CompilerDirectives.transferToInterpreterAndInvalidate();
8990
throw new IllegalStateException(getOwner().getName() + ".__new__ called without arguments");
@@ -165,7 +166,7 @@ private PythonBuiltinClassType getOwner() {
165166
CompilerDirectives.transferToInterpreterAndInvalidate();
166167
Builtin[] builtins = null;
167168
Class<?> cls = getNode().getClass();
168-
while (cls != null ) {
169+
while (cls != null) {
169170
builtins = cls.getAnnotationsByType(Builtin.class);
170171
if (builtins.length == 0) {
171172
cls = cls.getSuperclass();

0 commit comments

Comments
 (0)