summaryrefslogtreecommitdiff
path: root/Lib/test/test_parser.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2006-08-23 21:14:03 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2006-08-23 21:14:03 +0000
commit76467ba6d6cac910523373efe967339f96b10c85 (patch)
tree09fcfeff97fea0d4d4a7080ff4c0cfd6c0e48362 /Lib/test/test_parser.py
parent20362a820bd09617a33721191aa966416b03427c (diff)
downloadcpython-git-76467ba6d6cac910523373efe967339f96b10c85.tar.gz
Bug fixes large and small for tokenize.
Small: Always generate a NL or NEWLINE token following a COMMENT token. The old code did not generate an NL token if the comment was on a line by itself. Large: The output of untokenize() will now match the input exactly if it is passed the full token sequence. The old, crufty output is still generated if a limited input sequence is provided, where limited means that it does not include position information for tokens. Remaining bug: There is no CONTINUATION token (\) so there is no way for untokenize() to handle such code. Also, expanded the number of doctests in hopes of eventually removing the old-style tests that compare against a golden file. Bug fix candidate for Python 2.5.1. (Sigh.)
Diffstat (limited to 'Lib/test/test_parser.py')
0 files changed, 0 insertions, 0 deletions