mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Issue #18873: The tokenize module, IDLE, 2to3, and the findnocoding.py script
now detect Python source code encoding only in comment lines.
This commit is contained in:
parent
975fce3788
commit
dafea85190
9 changed files with 44 additions and 22 deletions
2
Lib/lib2to3/tests/data/false_encoding.py
Normal file
2
Lib/lib2to3/tests/data/false_encoding.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env python
|
||||
print '#coding=0'
|
||||
Loading…
Add table
Add a link
Reference in a new issue