• Victor Stinner's avatar
    Issue #9425: fix setup_context() for non-ascii filenames · 2e5f1178
    Victor Stinner yazdı
    setup_context() replaces .pyc or .pyo filename suffix by .py, but it
    didn't work if the filename contains a non-ascii character because the
    function used the wrong unit for the length (number of characters
    instead of the number of bytes).
    
    With this patch, it uses unicode filenames instead of bytes filenames,
    to fix the bug and to be fully unicode compliant.
    2e5f1178
_warnings.c 25.8 KB