[pypy-issue] [issue732] __future__ checker does not support UTF-8 BOM

sjohannes tracker at bugs.pypy.org
Sat May 28 15:53:00 CEST 2011

New submission from sjohannes <sasongko at gmail.com>:

The __future__ checker needs to allow the character sequence '\xef\xbb\xbf' at 
the start of a file (PEP 0263). Currently running such file produces

Traceback (most recent call last):
  File "app_main.py", line 53, in run_toplevel
  File "bomtest.py", line 1
SyntaxError: __future__ statements must appear at beginning of file

Attached is a test case. Tested with PyPy 1.5.

messages: 2567
nosy: pypy-issue, sjohannes
priority: bug
status: unread
title: __future__ checker does not support UTF-8 BOM

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list