Merge "Add __ne__ built-in function"

This commit is contained in:
Jenkins 2016-09-09 08:51:15 +00:00 committed by Gerrit Code Review
commit 7abb2fe7e8
1 changed files with 3 additions and 0 deletions

View File

@ -183,6 +183,9 @@ class Requirement(object):
return (isinstance(other, self.__class__) and
self.package_name == other.package_name)
def __ne__(self, other):
return not self.__eq__(other)
def parse_data(raw_data, include_comments=True):
# first elem is None to simplify checks of last elem in requirements