Function zalgo_codec_common::wrap_python_file
source · pub fn wrap_python_file<P: AsRef<Path>>(
in_file: P,
out_file: P
) -> Result<(), UnencodableFileError>
Expand description
Encodes the contents of the given Python source file and stores the result wrapped in a decoder in another file. This new file retains the functionality of the original. If the source file contains carriage return characters this function will print a message and then attempt to encode it anyway by ignoring them.
Notes
The resulting python file may not work correctly on python versions before 3.10, (see this github issue).