Beispiel #1
0
 def __str__(self):
     # type: () -> str
     assert m2.asn1_time_type_check(self.asn1_time), \
         "'asn1_time' type error'"
     buf = BIO.MemoryBuffer()
     m2.asn1_time_print(buf.bio_ptr(), self.asn1_time)
     return buf.read_all()
Beispiel #2
0
 def __str__(self):
     # type: () -> str
     assert m2.asn1_time_type_check(self.asn1_time), \
         "'asn1_time' type error'"
     buf = BIO.MemoryBuffer()
     m2.asn1_time_print(buf.bio_ptr(), self.asn1_time)
     return six.ensure_text(buf.read_all())