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

Method _getparams

Lib/test/support/smtpd.py:447–456  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

445 return address.addr_spec, rest
446
447 def _getparams(self, params):
448 # Return params as dictionary. Return None if not all parameters
449 # appear to be syntactically valid according to RFC 1869.
450 result = {}
451 for param in params:
452 param, eq, value = param.partition('=')
453 if not param.isalnum() or eq and not value:
454 return None
455 result[param] = value if eq else True
456 return result
457
458 def smtp_HELP(self, arg):
459 if arg:

Callers 2

smtp_MAILMethod · 0.95
smtp_RCPTMethod · 0.95

Calls 2

isalnumMethod · 0.80
partitionMethod · 0.45

Tested by

no test coverage detected