doc/news.rst | 1 + pyderasn.py | 3 +++ diff --git a/doc/news.rst b/doc/news.rst index 2e16911fab5fde197a37a0cf2722e91e557655156a1e5dbcdb10249690cdcd15..83f14d481cff4721150df6be147e1735ce17b87f953b5f4c482c26493fca875b 100644 --- a/doc/news.rst +++ b/doc/news.rst @@ -8,6 +8,7 @@ --- * Strict NumericString's value sanitation * Invalid encoding in string types will raise ``DecodeError`` exception, instead of ``Unicode*Error`` +* Fixed DecodePathDefBy workability with Python 2.x .. _release3.3: diff --git a/pyderasn.py b/pyderasn.py index b7701ca606516b126e890231960bba47f8f157128e0f5d51f68b0ff234e55d0b..61043260ef5c1c190d1a3667a70d77b5663346a42ac6d96c4eaa3d2eb42f88c1 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -1018,6 +1018,9 @@ def __init__(self, defined_by): self.defined_by = defined_by + def __ne__(self, their): + return not(self == their) + def __eq__(self, their): if not isinstance(their, self.__class__): return False