• Trent Nelson's avatar
    - Issue #719888: Updated tokenize to use a bytes API. generate_tokens has been · 428de65c
    Trent Nelson yazdı
      renamed tokenize and now works with bytes rather than strings. A new
      detect_encoding function has been added for determining source file encoding
      according to PEP-0263. Token sequences returned by tokenize always start
      with an ENCODING token which specifies the encoding used to decode the file.
      This token is used to encode the output of untokenize back to bytes.
    
    Credit goes to Michael "I'm-going-to-name-my-first-child-unittest" Foord from Resolver Systems for this work.
    428de65c
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgsvnexternals Loading commit data...
.hgtags Loading commit data...
INTBENCH Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
RELNOTES Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
runtests.sh Loading commit data...
setup.py Loading commit data...