edit: Oops. I guess git filter-branch is pretty dangerous. See #9 for a fixed version.
Porting Session Saver to Python 3 removed the __cmp__ method for comparing objects and replaced them with the rich comparison methods like __lt__. However, during the port, __eq__ wasn't added to the Session class, which meant that identically named sessions weren't considered equal. This meant that sessions would never be changed, leading them to be duplicated:
This adds the __eq__ method in, and the __ne__ method just for completeness.
edit: Oops. I guess git filter-branch is pretty dangerous. See #9 for a fixed version.
Porting Session Saver to Python 3 removed the
__cmp__
method for comparing objects and replaced them with the rich comparison methods like__lt__
. However, during the port,__eq__
wasn't added to the Session class, which meant that identically named sessions weren't considered equal. This meant that sessions would never be changed, leading them to be duplicated: This adds the__eq__
method in, and the__ne__
method just for completeness.