(tokensource)
| 271 | |
| 272 | |
| 273 | def format_tokens(tokensource): |
| 274 | for token, text in tokensource: |
| 275 | if text == "\n": |
| 276 | continue |
| 277 | |
| 278 | # TODO: something about inversing Parenthesis |
| 279 | while token not in theme_map: |
| 280 | token = token.parent |
| 281 | yield (theme_map[token], text) |
| 282 | |
| 283 | |
| 284 | class BPythonEdit(urwid.Edit): |
no outgoing calls
no test coverage detected