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