Reformat code and execute it
(event)
| 381 | |
| 382 | |
| 383 | def reformat_and_execute(event): |
| 384 | """Reformat code and execute it""" |
| 385 | shell = get_ipython() |
| 386 | reformat_text_before_cursor( |
| 387 | event.current_buffer, event.current_buffer.document, shell |
| 388 | ) |
| 389 | event.current_buffer.validate_and_handle() |
| 390 | |
| 391 | |
| 392 | def reformat_text_before_cursor(buffer, document, shell): |
nothing calls this directly
no test coverage detected
searching dependent graphs…