forked from Rust-related/RustPython
Check key and value before calling `env::set_var` From doc of `env::set_var`, ``` This function may panic if `key` is empty, contains an ASCII equals sign `'='` or the NUL character `'\0'`, or when the value contains the NUL character. ```