Skip to content

Commit d484b9d

Browse files
committed
fix style and test on case-insensitive FS
1 parent 3f6a317 commit d484b9d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_modsupport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def compile_module(self, name):
163163
*objOut = PySequence_Size(obj) == 0 ? Py_False : Py_True;
164164
return 1;
165165
}
166-
166+
167167
static PyObject* wrap_PyArg_ParseTuple(PyObject* argTuple) {
168168
PyObject* out = NULL;
169169
Py_INCREF(argTuple);
@@ -394,7 +394,7 @@ def compile_module(self, name):
394394
cmpfunc=unhandled_error_compare
395395
)
396396

397-
test_parseargs_y = CPyExtFunction(
397+
test_parseargs_y_lower = CPyExtFunction(
398398
lambda args: args[0][0].decode(),
399399
lambda: (
400400
((b'', ), ),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4186,7 +4186,7 @@ abstract static class PyAtExit extends PythonUnaryBuiltinNode {
41864186
@Specialization
41874187
@TruffleBoundary
41884188
int doGeneric(Object funcPtr) {
4189-
getContext().registerAtexitHook(new ShutdownHook(){
4189+
getContext().registerAtexitHook(new ShutdownHook() {
41904190
public void call(@SuppressWarnings("unused") PythonContext context) {
41914191
try {
41924192
InteropLibrary.getUncached().execute(funcPtr);

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,8 @@ static ParserState doEncodedString(ParserState stateIn, Object kwds, @SuppressWa
559559
writeOutVarNode.writeInt64(varargs, state.outIndex, size);
560560
}
561561
}
562-
return state.incrementOutIndex().skip(); // e is always followed by 's' or 't', which me must skip
562+
return state.incrementOutIndex().skip(); // e is always followed by 's' or 't', which me
563+
// must skip
563564
}
564565

565566
@Specialization(guards = "c == FORMAT_LOWER_B")
@@ -983,7 +984,8 @@ private static int convertbuffer(CExtContext nativeContext, PCallCExtFunction ca
983984
throw raise(raiseNode, SystemError, ErrorMessages.RETURNED_UNEXPECTE_RET_CODE_EXPECTED_INT_BUT_WAS_S, FUN_CONVERTBUFFER, rc.getClass());
984985
}
985986
int i = intValue((Number) rc);
986-
// first two results are the error results from getbuffer, the third is the one from convertbuffer
987+
// first two results are the error results from getbuffer, the third is the one from
988+
// convertbuffer
987989
if (i == -1) {
988990
throw raise(raiseNode, TypeError, ErrorMessages.READ_WRITE_BYTELIKE_OBJ);
989991
} else if (i == -2) {

0 commit comments

Comments
 (0)