Skip to content

Commit 82a1e78

Browse files
committed
fix style
1 parent d855556 commit 82a1e78

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/GraalHPyContextFunctions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,8 @@ Object execute(Object[] arguments,
14721472
} catch (OverflowException | InteropException ex) {
14731473
throw CompilerDirectives.shouldNotReachHere(ex);
14741474
}
1475-
// TODO: TruffleString - when we have ISO-8859-1, we can just force the encoding and short-circuit the error reading etc
1475+
// TODO: TruffleString - when we have ISO-8859-1, we can just force the encoding and
1476+
// short-circuit the error reading etc
14761477
String errors = castToJavaStringNode.execute(callHPyFunction.call(context, GraalHPyNativeSymbol.POLYGLOT_FROM_STRING, arguments[3], "ascii"));
14771478
CodingErrorAction errorAction = CodecsModuleBuiltins.convertCodingErrorAction(errors);
14781479
String result = decode(errorAction, bytes);

mx.graalpython/mx_graalpython.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,10 @@ def _python_checkpatchfiles():
13651365
content = listfile.read()
13661366
patchfile_pattern = re.compile(r"lib-graalpython/patches/([^/]+)/(sdist|whl)/.*\.patch")
13671367
checked = set()
1368-
allowed_licenses = ["MIT", "BSD", "BSD-3-Clause", "BSD 3-Clause License", "BSD or Apache License, Version 2.0", "MIT license", "PSF"]
1368+
allowed_licenses = [
1369+
"MIT", "BSD", "BSD-3-Clause", "BSD 3-Clause License", "BSD or Apache License, Version 2.0",
1370+
"MIT license", "PSF", "BSD-3-Clause OR Apache-2.0"
1371+
]
13691372
for line in content.split("\n"):
13701373
match = patchfile_pattern.search(line)
13711374
if match:

0 commit comments

Comments
 (0)