[issue10588] imp.find_module raises unexpected SyntaxError

2013-01-25 Thread Brett Cannon
Brett Cannon added the comment: imp.find_module() is now documented as deprecated, so changing the mode that files are opened in would change backwards-compatibility but wouldn't be worth it. -- resolution: -> out of date status: open -> closed ___

[issue10588] imp.find_module raises unexpected SyntaxError

2011-09-25 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue10588] imp.find_module raises unexpected SyntaxError

2011-08-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: The reason for this is that file_module tries to detect the encoding of the file to set the encoding for the opened file. IMO, it should just return a file in binary mode. -- nosy: +benjamin.peterson, haypo ___

[issue10588] imp.find_module raises unexpected SyntaxError

2011-08-10 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10588] imp.find_module raises unexpected SyntaxError

2011-08-09 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue10588] imp.find_module raises unexpected SyntaxError

2010-12-05 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +brett.cannon, eric.araujo, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue10588] imp.find_module raises unexpected SyntaxError

2010-11-30 Thread Ron Adam
Changes by Ron Adam : -- nosy: +ron_adam ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue10588] imp.find_module raises unexpected SyntaxError

2010-11-30 Thread Emile Anclin
New submission from Emile Anclin : Considering following file: $ cat pylint/test/input/func_unknown_encoding.py # -*- coding: IBO-8859-1 -*- """ check correct unknown encoding declaration """ __revision__ = '' $ When we try to find that module, imp.find_module raises SyntaxError: >>> fro