@@ -110,17 +110,17 @@ protected PythonContext getContext() {
110
110
return contextRef .get ();
111
111
}
112
112
113
- protected Object importModule (VirtualFrame frame , String name ) {
113
+ protected final Object importModule (VirtualFrame frame , String name ) {
114
114
return importModule (frame , name , PNone .NONE , PythonUtils .EMPTY_STRING_ARRAY , 0 );
115
115
}
116
116
117
117
118
- public static Object importModule (String name ) {
118
+ public static final Object importModule (String name ) {
119
119
return importModule (name , PythonUtils .EMPTY_STRING_ARRAY );
120
120
}
121
121
122
122
@ TruffleBoundary
123
- public static Object importModule (String name , String [] fromList ) {
123
+ public static final Object importModule (String name , String [] fromList ) {
124
124
Object builtinImport = PyFrameGetBuiltins .getUncached ().execute ().getAttribute (__IMPORT__ );
125
125
if (builtinImport == PNone .NO_VALUE ) {
126
126
throw PConstructAndRaiseNode .getUncached ().raiseImportError (null , IMPORT_NOT_FOUND );
@@ -129,7 +129,7 @@ public static Object importModule(String name, String[] fromList) {
129
129
return CallNode .getUncached ().execute (builtinImport , name , PNone .NONE , PNone .NONE , PythonObjectFactory .getUncached ().createTuple (fromList ), 0 );
130
130
}
131
131
132
- protected Object importModule (VirtualFrame frame , String name , Object globals , String [] fromList , int level ) {
132
+ protected final Object importModule (VirtualFrame frame , String name , Object globals , String [] fromList , int level ) {
133
133
// Look up built-in modules supported by GraalPython
134
134
PythonContext context = getContext ();
135
135
Python3Core core = getContext ().getCore ();
0 commit comments