MCPcopy Index your code
hub / github.com/RustPython/RustPython / xatom

Method xatom

Lib/imaplib.py:1027–1042  ·  view source on GitHub ↗

Allow simple extension commands notified by server in CAPABILITY response. Assumes command is legal in current state. (typ, [data]) = .xatom(name, arg, ...) Returns response appropriate to extension command 'name'.

(self, name, *args)

Source from the content-addressed store, hash-verified

1025
1026
1027 def xatom(self, name, *args):
1028 """Allow simple extension commands
1029 notified by server in CAPABILITY response.
1030
1031 Assumes command is legal in current state.
1032
1033 (typ, [data]) = <instance>.xatom(name, arg, ...)
1034
1035 Returns response appropriate to extension command 'name'.
1036 """
1037 name = name.upper()
1038 #if not name in self.capabilities: # Let the server decide!
1039 # raise self.error('unknown extension command: %s' % name)
1040 if not name in Commands:
1041 Commands[name] = (self.state,)
1042 return self._simple_command(name, *args)
1043
1044
1045

Callers

nothing calls this directly

Calls 2

_simple_commandMethod · 0.95
upperMethod · 0.45

Tested by

no test coverage detected