MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _getparams

Method _getparams

tools/python-3.11.9-amd64/Lib/smtpd.py:459–468  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

457 return address.addr_spec, rest
458
459 def _getparams(self, params):
460 # Return params as dictionary. Return None if not all parameters
461 # appear to be syntactically valid according to RFC 1869.
462 result = {}
463 for param in params:
464 param, eq, value = param.partition('=')
465 if not param.isalnum() or eq and not value:
466 return None
467 result[param] = value if eq else True
468 return result
469
470 def smtp_HELP(self, arg):
471 if arg:

Callers 2

smtp_MAILMethod · 0.95
smtp_RCPTMethod · 0.95

Calls 2

partitionMethod · 0.80
isalnumMethod · 0.80

Tested by

no test coverage detected