xcp.compat¶
Helper module for setting up binary or UTF-8 I/O for Popen and open in Python 3.6 and newer
- xcp.compat.open_defaults_for_utf8_text(args: tuple[Any, ...] | None, kwargs: Any) tuple[str, Any] [source]¶
Setup keyword arguments for UTF-8 text mode with codec error handler to replace chars