Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

2.7 needs different solution.

The side effect of issue10639 in 2.7 was changing input and output files for 
the reindenter to Unicode files. This was not correct. Standard streams 
stdin/stdout in 2.7 are binary files, and the tokenizer needs the stream of 
bytes.

The proposed PR makes input and output files for the reindenter binary files 
again, and implements detecting line separators for issue10639.

After fixing Tools/scripts/reindent.py running `make reindent` fixed 
Lib/email/utils.py.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue30109>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to