Skip to content

Commit af75e29

Browse files
committed
do not expose the full filename of internal sources on the code objects
1 parent fb22b50 commit af75e29

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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
@@ -2349,7 +2349,7 @@ Object make(PFunction func, Object errorResult) {
23492349
0, 0, 0,
23502350
new byte[0], new Object[0], new Object[0],
23512351
new Object[0], new Object[0], new Object[0],
2352-
wrappedCode.getFilename(), wrappedCode.getName(), 0,
2352+
wrappedCode.getName(), wrappedCode.getName(), 0,
23532353
new byte[0]);
23542354
return factory().createFunction(func.getName(), func.getQualname(), func.getEnclosingClassName(),
23552355
wrapperCode, func.getGlobals(), func.getDefaults(), func.getKwDefaults(),

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/code/PCode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
import java.util.List;
4747
import java.util.Set;
4848

49+
import org.graalvm.nativeimage.ImageInfo;
50+
4951
import com.oracle.graal.python.PythonLanguage;
5052
import com.oracle.graal.python.builtins.PythonBuiltinClassType;
5153
import com.oracle.graal.python.builtins.objects.bytes.PBytes;

0 commit comments

Comments
 (0)