Skip to content
Unverified Commit 879d3fc0 authored by Ian Stapleton Cordasco's avatar Ian Stapleton Cordasco
Browse files

Modify stdin retriever to detect coding pragma

When we read in a file on Python 3, we use the tokenize module to detect
the coding pragma at the top of the file. We then use that to decode the
rest of the file. However, when we were receiving stdin, we would not do
that.

This updates ``stdin_get_value`` in a backwards compatible way to check
for that coding pragma and then fall back to UTF-8 if necessary.

Closes #306
parent 218a0b69
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment