Commit 52818ea
committed
FIX: loadpkl failed when pklz file contained versioning info
loadpkl called pickle.load at file position 0, which would fail
if the first line of the file was json versioning info (as when
using savepkl with versioning=True). This was fixed by only
seeking to position 0 if no versioning information is found.1 parent 508df5e commit 52818ea
2 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
692 | | - | |
693 | | - | |
694 | 692 | | |
695 | 693 | | |
696 | 694 | | |
| |||
0 commit comments