Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork940
Commitf699a38
committed
Fix Git.version_info pickling
For#1836.This uses a property with the same logic as before for version_infocaching, except that the _version_info backing attribute holds thevalue None, rather than being unset, for the uncomputed state. Thisrectifies the inconistency between the property's behavior and theway the associated states are represented by its __setstate__ and__getstate__ methods for pickling.Because the Git class only used LazyMixin as an implementationdetail of the version_info attribute, it is removed as a subclass.1 parent2d6311b commitf699a38
1 file changed
+14
-18
lines changedLines changed: 14 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
29 | 28 |
| |
30 | 29 |
| |
31 | 30 |
| |
| |||
287 | 286 |
| |
288 | 287 |
| |
289 | 288 |
| |
290 |
| - | |
| 289 | + | |
291 | 290 |
| |
292 | 291 |
| |
293 | 292 |
| |
| |||
784 | 783 |
| |
785 | 784 |
| |
786 | 785 |
| |
| 786 | + | |
787 | 787 |
| |
788 | 788 |
| |
789 | 789 |
| |
| |||
795 | 795 |
| |
796 | 796 |
| |
797 | 797 |
| |
798 |
| - | |
799 |
| - | |
| 798 | + | |
| 799 | + | |
800 | 800 |
| |
801 | 801 |
| |
802 | 802 |
| |
| |||
811 | 811 |
| |
812 | 812 |
| |
813 | 813 |
| |
814 |
| - | |
815 |
| - | |
816 |
| - | |
817 |
| - | |
818 |
| - | |
819 |
| - | |
820 |
| - | |
821 |
| - | |
822 |
| - | |
823 |
| - | |
824 |
| - | |
825 |
| - | |
826 |
| - | |
827 |
| - | |
828 | 814 |
| |
829 | 815 |
| |
830 | 816 |
| |
| |||
838 | 824 |
| |
839 | 825 |
| |
840 | 826 |
| |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
841 | 837 |
| |
842 | 838 |
| |
843 | 839 |
| |
|
0 commit comments
Comments
(0)