Skip to content

Commit 50a3174

Browse files
committed
do not strip class name to last segment after dot
1 parent 505f80d commit 50a3174

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/PythonManagedClass.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected PythonManagedClass(PythonLanguage lang, Object typeClass, Shape classS
8383
@TruffleBoundary
8484
protected PythonManagedClass(PythonLanguage lang, Object typeClass, Shape classShape, Shape instanceShape, String name, boolean invokeMro, PythonAbstractClass... baseClasses) {
8585
super(typeClass, classShape);
86-
this.name = getBaseName(name);
86+
this.name = name;
8787
this.qualName = name;
8888

8989
this.methodResolutionOrder = new MroSequenceStorage(name, 0);
@@ -127,14 +127,6 @@ public void invokeMro() {
127127
mroInitialized = true;
128128
}
129129

130-
private static String getBaseName(String qname) {
131-
int lastDot = qname.lastIndexOf('.');
132-
if (lastDot != -1) {
133-
return qname.substring(lastDot + 1);
134-
}
135-
return qname;
136-
}
137-
138130
public Assumption getLookupStableAssumption() {
139131
return methodResolutionOrder.getLookupStableAssumption();
140132
}

0 commit comments

Comments
 (0)