(self, other, method)
| 156 | return self._compare(other, lambda s, o: s != o) |
| 157 | |
| 158 | def _compare(self, other, method): |
| 159 | if not isinstance(other, _BaseVersion): |
| 160 | return NotImplemented |
| 161 | |
| 162 | return method(self._key, other._key) |
| 163 | |
| 164 | |
| 165 | class LegacyVersion(_BaseVersion): |