Ejemplo n.º 1
0
 def makefile(self, mode='r', bufsize=-1):
     """Make and return a file-like object that
     works with the SSL connection.  Just use the code
     from the socket module."""
     self._makefile_refs += 1
     # close=True so as to decrement the reference count when done with
     # the file-like object.
     return _fileobject(self, mode, bufsize, close=True)
Ejemplo n.º 2
0
 def makefile(self, mode='r', bufsize=-1):
     """Make and return a file-like object that
     works with the SSL connection.  Just use the code
     from the socket module."""
     self._makefile_refs += 1
     # close=True so as to decrement the reference count when done with
     # the file-like object.
     return _fileobject(self, mode, bufsize, close=True)
Ejemplo n.º 3
0
 def makefile(self, mode = 'r', bufsize = -1):
     return socket._fileobject(self, mode, bufsize)
Ejemplo n.º 4
0
 def makefile(self, *args, **kwargs):
     return _fileobject(self, *args, **kwargs)
Ejemplo n.º 5
0
 def makefile(self, mode='r', bufsize=-1):
     """Make and return a file-like object that
     works with the SSL connection.  Just use the code
     from the socket module."""
     self._makefile_refs += 1
     return _fileobject(self, mode, bufsize)
Ejemplo n.º 6
0
 def makefile(self, mode='r', bufsize=-1):
     return DebugFileObject(socket._fileobject(self.dup(), mode, bufsize))
Ejemplo n.º 7
0
 def makefile(self, mode='r', bufsize=-1):
     self._makefile_refs += 1
     return _fileobject(self, mode, bufsize, close=True)
Ejemplo n.º 8
0
 def makefile(self, mode='r', bufsize=-1):
     self._makefile_refs += 1
     return _fileobject(self, mode, bufsize, close=True)
Ejemplo n.º 9
0
 def makefile(self, *args, **kwargs):
     return _fileobject(self, *args, **kwargs)
Ejemplo n.º 10
0
Archivo: ssl.py Proyecto: strogo/pylibs
 def makefile(self, mode='r', bufsize=-1):
     """Make and return a file-like object that
     works with the SSL connection.  Just use the code
     from the socket module."""
     self._makefile_refs += 1
     return _fileobject(self, mode, bufsize)