MCPcopy Index your code
hub / github.com/python/cpython / xatom

Method xatom

Lib/imaplib.py:1024–1039  ·  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

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

Callers

nothing calls this directly

Calls 2

_simple_commandMethod · 0.95
upperMethod · 0.45

Tested by

no test coverage detected