DebugClients/Python/coverage/phystokens.py

changeset 32
01f04fbc1842
parent 31
744cd0b4b8cd
child 790
2c0ea0163ef4
equal deleted inserted replaced
31:744cd0b4b8cd 32:01f04fbc1842
1 """Better tokenizing for coverage.py.""" 1 """Better tokenizing for coverage.py."""
2 2
3 import keyword, re, token, tokenize 3 import keyword, re, token, tokenize
4 from coverage.backward import StringIO # pylint: disable-msg=W0622 4 from .backward import StringIO # pylint: disable-msg=W0622
5 5
6 def phys_tokens(toks): 6 def phys_tokens(toks):
7 """Return all physical tokens, even line continuations. 7 """Return all physical tokens, even line continuations.
8 8
9 tokenize.generate_tokens() doesn't return a token for the backslash that 9 tokenize.generate_tokens() doesn't return a token for the backslash that

eric ide

mercurial