[issue1882] py_compile does not follow PEP 0263

2008-01-21 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the report, fixed in r60168, r60169 (2.5). -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

[issue1882] py_compile does not follow PEP 0263

2008-01-21 Thread Jakub Wilk
New submission from Jakub Wilk: PEP 0263 allows an encoding declaration in the second line, but py_compile seems not to recognize such ones: >>> MODULE = "\n# encoding=UTF-8\nU = u'\xc3\xb3'\n" >>> f = file('tmp.py', 'w') >>> f.write(MODULE) >>> f.close() >>> from py_compile import compile >>> c