From 6b6f19dbedb0caab3a028dfdd443fc4f5ffb0651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marduk=20Bola=C3=B1os?= Date: Tue, 5 May 2020 19:46:37 +0200 Subject: [PATCH] Do not alter boolean settings Negating the value of a boolean setting when retrieving its value makes it difficult to reason about its meaning. --- pyembed/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyembed/src/config.rs b/pyembed/src/config.rs index 1203a60fe..600263050 100644 --- a/pyembed/src/config.rs +++ b/pyembed/src/config.rs @@ -680,13 +680,13 @@ impl<'a> From> for OxidizedPythonInterpreterConfig<'a> { }), site_import: Some(config.import_site), user_site_directory: Some(config.import_user_site), - use_environment: Some(!config.ignore_python_env), + use_environment: Some(config.ignore_python_env), inspect: Some(config.inspect), interactive: Some(config.interactive), legacy_windows_fs_encoding: Some(config.legacy_windows_stdio), legacy_windows_stdio: Some(config.legacy_windows_stdio), write_bytecode: Some(config.write_bytecode), - buffered_stdio: Some(!config.unbuffered_stdio), + buffered_stdio: Some(config.unbuffered_stdio), parser_debug: Some(config.parser_debug), quiet: Some(config.quiet), verbose: Some(config.verbose != 0),