def import_ns(self, namespace): """ """ pythonshare._send(Request_ns(namespace), self._to_server) rv = pythonshare._recv(self._from_server) if isinstance(rv, Ns_rv) and rv.status: return True else: raise pythonshare.PythonShareError(rv.errormsg)
def import_ns(self, namespace): """ """ cPickle.dump(Request_ns(namespace), self._to_server) self._to_server.flush() rv = cPickle.load(self._from_server) if isinstance(rv, Ns_rv) and rv.status: return True else: raise pythonshare.PythonShareError(rv.errormsg)