The code to recognize the coding cookie did not cover all variations described in `PEP 263 <http://www.python.org/dev/peps/pep-0263/>`_. See section `Defining the Encoding` for examples.
The PEP already proposes a regular expression to extract the information. And the cookie is limited to the very first two lines of the source code.
Log in to post a comment.