@@ -51,7 +51,7 @@ use rustpython_vm::{
51
51
compile, match_class,
52
52
scope:: Scope ,
53
53
stdlib:: { atexit, sys} ,
54
- AsObject , InitParameter , Interpreter , PyObjectRef , PyResult , PySettings , TryFromObject ,
54
+ AsObject , InitParameter , Interpreter , PyObjectRef , PyResult , Settings , TryFromObject ,
55
55
VirtualMachine ,
56
56
} ;
57
57
use std:: { env, path:: Path , process, str:: FromStr } ;
@@ -308,8 +308,8 @@ fn add_stdlib(vm: &mut VirtualMachine) {
308
308
309
309
/// Create settings by examining command line arguments and environment
310
310
/// variables.
311
- fn create_settings ( matches : & ArgMatches ) -> PySettings {
312
- let mut settings = PySettings :: default ( ) ;
311
+ fn create_settings ( matches : & ArgMatches ) -> Settings {
312
+ let mut settings = Settings :: default ( ) ;
313
313
settings. isolated = matches. is_present ( "isolate" ) ;
314
314
settings. ignore_environment = matches. is_present ( "ignore-environment" ) ;
315
315
settings. interactive = !matches. is_present ( "c" )
@@ -320,7 +320,7 @@ fn create_settings(matches: &ArgMatches) -> PySettings {
320
320
321
321
let ignore_environment = settings. ignore_environment || settings. isolated ;
322
322
323
- // when rustpython-vm/pylib is enabled, PySettings ::default().path_list has pylib::LIB_PATH
323
+ // when rustpython-vm/pylib is enabled, Settings ::default().path_list has pylib::LIB_PATH
324
324
let maybe_pylib = settings. path_list . pop ( ) ;
325
325
326
326
// add the current directory to sys.path
@@ -699,7 +699,7 @@ mod tests {
699
699
use super :: * ;
700
700
701
701
fn interpreter ( ) -> Interpreter {
702
- Interpreter :: new_with_init ( PySettings :: default ( ) , |vm| {
702
+ Interpreter :: new_with_init ( Settings :: default ( ) , |vm| {
703
703
add_stdlib ( vm) ;
704
704
InitParameter :: External
705
705
} )
0 commit comments