Example #1
0
 def _read_nbio(self, size=1024):
     # type: (int) -> bytes
     if size <= 0:
         raise ValueError('size <= 0')
     return m2.ssl_read_nbio(self.ssl, size)
Example #2
0
 def _read_nbio(self, size=1024):
     if size <= 0:
         raise ValueError, 'size <= 0'
     return m2.ssl_read_nbio(self.ssl, size)
Example #3
0
 def _read_nbio(self, size=1024):
     if size <= 0:
         raise ValueError, 'size <= 0'
     return m2.ssl_read_nbio(self.ssl, size)
Example #4
0
 def _read_nbio(self, size=1024):
     # type: (int) -> bytes
     if size <= 0:
         raise ValueError('size <= 0')
     return m2.ssl_read_nbio(self.ssl, size)