Skip to content

Commit 0290fb3

Browse files
committed
[GR-21590] Update Python imports
PullRequest: graalpython/2511
2 parents 86cee84 + fc52372 commit 0290fb3

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "overlay": "51619132bad52d7603bb988bcbda1ff372d2aac1" }
1+
{ "overlay": "b7f2a8abd1005a8ef57418f3f20a81c3696f9cfe" }

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/function/WrapperDescriptorBuiltins.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,12 @@ abstract static class ReprNode extends PythonUnaryBuiltinNode {
104104
@Specialization
105105
static TruffleString reprClassFunction(PBuiltinFunction self,
106106
@Cached StringUtils.SimpleTruffleStringFormatNode simpleTruffleStringFormatNode) {
107-
return simpleTruffleStringFormatNode.format("<slot wrapper '%s' of '%s' objects>", self.getName(), TypeNodes.GetNameNode.doSlowPath(self.getEnclosingType()));
107+
if (self.getEnclosingType() == null) {
108+
// XXX: this is wrong
109+
return simpleTruffleStringFormatNode.format("<builtin_function_or_method '%s'>", self.getName());
110+
} else {
111+
return simpleTruffleStringFormatNode.format("<slot wrapper '%s' of '%s' objects>", self.getName(), TypeNodes.GetNameNode.doSlowPath(self.getEnclosingType()));
112+
}
108113
}
109114
}
110115
}

mx.graalpython/mx_graalpython.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,10 @@ def run_python_unittests(python_binary, args=None, paths=None, aot_compatible=Fa
773773
else:
774774
# If 'python_binary' is a SVM launcher, we need to add '--jvm' and prefix each Java arg with '--vm.'
775775
def graalvm_vm_arg(java_arg):
776-
assert java_arg[0] == "-"
776+
if java_arg.startswith("@") and os.path.exists(java_arg[1:]):
777+
with open(java_arg[1:], "r") as f:
778+
java_arg = f.read()
779+
assert java_arg[0] == "-", java_arg
777780
return "--vm." + java_arg[1:]
778781
agent_args = ' '.join(graalvm_vm_arg(arg) for arg in mx_gate.get_jacoco_agent_args() or [])
779782

mx.graalpython/suite.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,23 @@
4444
},
4545
{
4646
"name": "tools",
47-
"version": "379f8855050b04d41fd43391ed19eddfacaf5d50",
47+
"version": "4d1ff9c2d204ae0118adc54a999e7650c5855d34",
4848
"subdir": True,
4949
"urls": [
5050
{"url": "https://github.com/oracle/graal", "kind": "git"},
5151
],
5252
},
5353
{
5454
"name": "sulong",
55-
"version": "379f8855050b04d41fd43391ed19eddfacaf5d50",
55+
"version": "4d1ff9c2d204ae0118adc54a999e7650c5855d34",
5656
"subdir": True,
5757
"urls": [
5858
{"url": "https://github.com/oracle/graal", "kind": "git"},
5959
]
6060
},
6161
{
6262
"name": "regex",
63-
"version": "379f8855050b04d41fd43391ed19eddfacaf5d50",
63+
"version": "4d1ff9c2d204ae0118adc54a999e7650c5855d34",
6464
"subdir": True,
6565
"urls": [
6666
{"url": "https://github.com/oracle/graal", "kind": "git"},

0 commit comments

Comments
 (0)