Commit 428857e
Alexis Simon
python/tskit/util.py: Add a file name to FileFormatError
Closes #2467
Uses the .add_note method of exception, introduced
in Python 3.11. Also hardcodes the file name in
the raised from exceptions for HDF5 or zip.
Until 3.10 is EOF, needs the sys module.1 parent b7fd993 commit 428857e
3 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
878 | 879 | | |
879 | 880 | | |
880 | 881 | | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
881 | 886 | | |
882 | 887 | | |
883 | 888 | | |
| |||
887 | 892 | | |
888 | 893 | | |
889 | 894 | | |
890 | | - | |
| 895 | + | |
891 | 896 | | |
892 | 897 | | |
893 | 898 | | |
894 | 899 | | |
895 | 900 | | |
896 | 901 | | |
897 | | - | |
| 902 | + | |
898 | 903 | | |
899 | 904 | | |
900 | 905 | | |
| |||
0 commit comments