Message293760
While porting tokenize.py to javascript I stumbled upon this. The bit of code that checks if it's a newline or a comment, checks for comment twice. These can be split up, this way the code is a bit more readable.
https://github.com/python/cpython/blob/master/Lib/tokenize.py#L560
It's not broken, it's just a bit more complex then it has to be. |
|
Date |
User |
Action |
Args |
2017-05-16 13:08:09 | Albert-Jan Nijburg | set | recipients:
+ Albert-Jan Nijburg, meador.inge |
2017-05-16 13:08:09 | Albert-Jan Nijburg | set | messageid: <1494940089.25.0.512912878732.issue30377@psf.upfronthosting.co.za> |
2017-05-16 13:08:09 | Albert-Jan Nijburg | link | issue30377 messages |
2017-05-16 13:08:08 | Albert-Jan Nijburg | create | |
|