Tomáš Slanina

Results 2 comments of Tomáš Slanina

Hi, it's possible, but since UTF-8 is the default encoding for Python code, it'd be a more sane default, instead of relying on the filesystem. [Python does support using a...

Looking into it further, `ast.parse()` seems to accept `bytes` as well as `str`, and respects the encoding comment. We can just return bytes from `get_file_contents` and let the parser figure...