[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

STINNER Victor report at bugs.python.org
Fri Sep 18 08:58:23 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

> Committed in r85695.  Leaving open to discuss whether anything can/should be done for the case when reindent acts as an stdin to stdout filter.  Also, what is the policy on backporting Tools' bug fixes?

This is the commit:

commit 4a98e3b6d06e5477e5d62f18e85056cbb7253f98
Author: Alexander Belopolsky <alexander.belopolsky at gmail.com>
Date:   Mon Oct 18 14:43:38 2010 +0000

    Issue #10117: Tools/scripts/reindent.py now accepts source files that
    use encoding other than ASCII or UTF-8.  Source encoding is preserved
    when reindented code is written to a file.


> Since there won't be a python 2.7 backport, should this issue be closed?

Right, 2.7 branch is closed. I close the issue.

----------
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue10117>
_______________________________________


More information about the Python-bugs-list mailing list