]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Fix DecodePathDefBy workability with Python2 3.4
authorSergey Matveev <stargrave@stargrave.org>
Mon, 16 Apr 2018 12:55:38 +0000 (15:55 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 16 Apr 2018 12:58:24 +0000 (15:58 +0300)
doc/news.rst
pyderasn.py

index db063a67b2232b791b1d51d631f7263d3448df73..8e821205dafc40701f860e62f10c015c2a978ac2 100644 (file)
@@ -8,6 +8,7 @@ News
 * 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:
 
index 3b5c4d824a47eda126121f843281c0050b2eed6a..0c7812c8d4a70eb9cbc1ca18d77158160133c830 100755 (executable)
@@ -1018,6 +1018,9 @@ class DecodePathDefBy(object):
     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