Beispiel #1
0
    def __cmp__(self, other):
        # type: (ASN1_Integer) -> int
        if isinstance(other, ASN1_Integer):
            raise TypeError(
                "Comparisons supported only between ANS1_Integer objects")

        return m2.asn1_integer_cmp(self.asn1int, other.asn1int)
Beispiel #2
0
    def __cmp__(self, other):
        # type: (ASN1_Integer) -> int
        if not isinstance(other, ASN1_Integer):
            raise TypeError(
                "Comparisons supported only between ANS1_Integer objects")

        return m2.asn1_integer_cmp(self.asn1int, other.asn1int)
Beispiel #3
0
 def __cmp__(self, other):
     return m2.asn1_integer_cmp(self.asn1int, other.asn1int)