Message293787
| Author |
vstinner |
| Recipients |
georg.brandl, josephgordon, martin.panter, meador.inge, serhiy.storchaka, vstinner |
| Date |
2017年05月16日.21:06:23 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1494968783.7.0.950950797025.issue25324@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Extract of Lib/lib2to3/pgen2/driver.py:
if type in (tokenize.COMMENT, tokenize.NL):
...
if debug:
self.logger.debug("%s %r (prefix=%r)",
token.tok_name[type], value, prefix)
The code uses tokenize.COMMENT and look for this constant into token.tok_name. If token.tok_name doesn't contain COMMENT anymore, it breaks lib2to3, no? At least the debug mode which might not be covered by test_lib2to3. |
|