(obj: &crate::function::Either<PyStrRef, PyBytesRef>)
| 477 | |
| 478 | #[cfg(not(windows))] |
| 479 | fn env_bytes_as_bytes(obj: &crate::function::Either<PyStrRef, PyBytesRef>) -> &[u8] { |
| 480 | match obj { |
| 481 | crate::function::Either::A(s) => s.as_bytes(), |
| 482 | crate::function::Either::B(b) => b.as_bytes(), |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | #[cfg(windows)] |
| 487 | unsafe extern "C" { |