]> granicus.if.org Git - python/commit
Issue #14629: Raise SyntaxError in tokenizer.detect_encoding
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 20 Apr 2012 12:36:47 +0000 (14:36 +0200)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 20 Apr 2012 12:36:47 +0000 (14:36 +0200)
commit63674f4b52aa7c2832fec09a026e24cd521e491b
tree666adcb3196093e019e256d5ab9408df9436ea22
parent8e6e0fdb7fee3796df8b578c1311b5e46005f2d9
Issue #14629: Raise SyntaxError in tokenizer.detect_encoding
if the first two lines have non-UTF-8 characters without an encoding declaration.
Lib/test/test_tokenize.py
Lib/tokenize.py
Misc/NEWS