Skip to content

Commit ba7763a

Browse files
committed
use getFlag for reading options
1 parent 087455b commit ba7763a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/SysModuleBuiltins.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@ public void initialize(PythonCore core) {
138138
true, // dont_write_bytecode
139139
false, // hash_randomization
140140
false, // ignore_environment
141-
PythonOptions.getOption(core.getContext(), PythonOptions.InspectFlag).booleanValue(), // inspect
142-
PythonOptions.getOption(core.getContext(), PythonOptions.InspectFlag).booleanValue(), // interactive
141+
PythonOptions.getFlag(core.getContext(), PythonOptions.InspectFlag), // inspect
142+
PythonOptions.getFlag(core.getContext(), PythonOptions.InspectFlag), // interactive
143143
false, // isolated
144-
PythonOptions.getOption(core.getContext(), PythonOptions.NoSiteFlag).booleanValue(), // no_site
145-
PythonOptions.getOption(core.getContext(), PythonOptions.NoUserSiteFlag).booleanValue(), // no_user_site
144+
PythonOptions.getFlag(core.getContext(), PythonOptions.NoSiteFlag), // no_site
145+
PythonOptions.getFlag(core.getContext(), PythonOptions.NoUserSiteFlag), // no_user_site
146146
false, // optimize
147-
PythonOptions.getOption(core.getContext(), PythonOptions.QuietFlag).booleanValue(), // quiet
148-
PythonOptions.getOption(core.getContext(), PythonOptions.VerboseFlag).booleanValue(), // verbose
147+
PythonOptions.getFlag(core.getContext(), PythonOptions.QuietFlag), // quiet
148+
PythonOptions.getFlag(core.getContext(), PythonOptions.VerboseFlag), // verbose
149149
}));
150150
builtinConstants.put("graal_python_core_home", PythonOptions.getOption(core.getContext(), PythonOptions.CoreHome));
151151
builtinConstants.put("graal_python_stdlib_home", PythonOptions.getOption(core.getContext(), PythonOptions.StdLibHome));

0 commit comments

Comments
 (0)