@@ -144,19 +144,19 @@ fn shell_exec(vm: &mut VirtualMachine, source: &str, scope: PyObjectRef) -> bool
144
144
145
145
#[ cfg( target_family = "windows" ) ]
146
146
fn get_history_path ( ) -> String {
147
- //
148
- String :: from ( ".repl_history.txt" )
147
+ //
148
+ String :: from ( ".repl_history.txt" )
149
149
}
150
150
151
151
#[ cfg( target_family = "unix" ) ]
152
152
fn get_history_path ( ) -> String {
153
- //work around for windows dependent builds. The xdg crate is unix specific
154
- //so access to the BaseDirectories struct breaks builds on python.
155
- extern crate xdg;
153
+ //work around for windows dependent builds. The xdg crate is unix specific
154
+ //so access to the BaseDirectories struct breaks builds on python.
155
+ extern crate xdg;
156
156
157
157
let xdg_dirs = xdg:: BaseDirectories :: with_prefix ( "rustpython" ) . unwrap ( ) ;
158
158
let repl_history_path = xdg_dirs. place_cache_file ( "repl_history.txt" ) . unwrap ( ) ;
159
- repl_history_path. to_str ( ) . unwrap ( )
159
+ repl_history_path. to_str ( ) . unwrap ( )
160
160
}
161
161
162
162
fn run_shell ( vm : & mut VirtualMachine ) -> PyResult {
@@ -171,8 +171,8 @@ fn run_shell(vm: &mut VirtualMachine) -> PyResult {
171
171
let mut input = String :: new ( ) ;
172
172
let mut rl = Editor :: < ( ) > :: new ( ) ;
173
173
174
- //retrieve a history_path_str dependent to the os
175
- let repl_history_path_str = & get_history_path ( ) ;
174
+ //retrieve a history_path_str dependent to the os
175
+ let repl_history_path_str = & get_history_path ( ) ;
176
176
if rl. load_history ( repl_history_path_str) . is_err ( ) {
177
177
println ! ( "No previous history." ) ;
178
178
}
0 commit comments