diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-07-19 01:58:06 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-07-19 03:04:42 +0200 |
| commit | 673f771d2f333b5688d680eba5949f98f12c6177 (patch) | |
| tree | 38bf361792574562a061c295373ac56e5e5cae65 /tests/Kescape | |
| parent | 17ae2520ba9de79e32bad3a005a9850568456d13 (diff) | |
Simplify enabling universal newlines mode
Get rid of _UNIVERSAL_NEWLINES_MODE ("rU") and just convert "r" into
"rU" instead for Python 2. "r" and "w" are the only modes we need.
Rename _open_enc() to just _open() as well. It handles universal
newlines mode now too.
Piggyback a small note on possibly using 'yield' instead in _tokenize().
Diffstat (limited to 'tests/Kescape')
0 files changed, 0 insertions, 0 deletions
