[issue9771] add an optional default argument to tokenize.detect_encoding

2014-11-02 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9771 ___

[issue9771] add an optional default argument to tokenize.detect_encoding

2012-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I never understood the usage of the second item. IMO it should be None if no cookie found. UTF-8 is the default source encoding for Python 3. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org

[issue9771] add an optional default argument to tokenize.detect_encoding

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9771 ___

[issue9771] add an optional default argument to tokenize.detect_encoding

2010-12-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9771 ___

[issue9771] add an optional default argument to tokenize.detect_encoding

2010-11-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: no cookie found, returns ('utf-8', [line1, line2]) I never understood the usage of the second item. IMO it should be None if no cookie found. -- ___ Python tracker

[issue9771] add an optional default argument to tokenize.detect_encoding

2010-11-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9771 ___ ___ Python-bugs-list mailing list

[issue9771] add an optional default argument to tokenize.detect_encoding

2010-09-04 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: The function tokenize.detect_encoding() detects the encoding either in the coding cookie or in the BOM. If no encoding is found, it returns 'utf-8': When result is 'utf-8', there's no (easy) way to know if the encoding was really

[issue9771] add an optional default argument to tokenize.detect_encoding

2010-09-04 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9771 ___ ___ Python-bugs-list