Commit 0bdfd0b
Ahmed Fasih
Make backwards-compatible
There are two options suggested in
#809:
1. use TypeError to catch non-existent omit_sections kw. This will work with
master but will be less clear when we deprecate IPython 7.x in a few years.
2. use IPython version_info, which makes cleanup easier but means we won't be
able to use this feature with master IPython, only v8.
Going with #2 because it's cleaner.1 parent 77cdd28 commit 0bdfd0b
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
466 | 467 | | |
467 | 468 | | |
468 | 469 | | |
469 | | - | |
470 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
471 | 474 | | |
472 | 475 | | |
473 | 476 | | |
474 | 477 | | |
475 | | - | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
476 | 484 | | |
477 | 485 | | |
478 | 486 | | |
| |||
0 commit comments