def _socket_as_file(self):
    if (self.socket_as_file is None):
        self.socket_as_file = self._socket().makefile('rb')
    return self.socket_as_file
def _socket_as_file(self):
    if (self.socket_as_file is None):
        self.socket_as_file = self._socket().makefile('rb')
    return self.socket_as_file