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

Method _getparams

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

Source from the content-addressed store, hash-verified

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

Callers 2

smtp_MAILMethod · 0.95
smtp_RCPTMethod · 0.95

Calls 2

partitionMethod · 0.45
isalnumMethod · 0.45

Tested by

no test coverage detected