MCPcopy Create free account
hub / github.com/webpy/webpy / listify

Method listify

web/utils.py:1445–1449  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1443class _EmailMessage:
1444 def __init__(self, from_address, to_address, subject, message, headers=None, **kw):
1445 def listify(x):
1446 if not isinstance(x, list):
1447 return [safestr(x)]
1448 else:
1449 return [safestr(a) for a in x]
1450
1451 subject = safestr(subject)
1452 message = safestr(message)

Callers

nothing calls this directly

Calls 1

safestrFunction · 0.85

Tested by

no test coverage detected