From 8862edefa4b020a0d92db68210cedebe9b60835b Mon Sep 17 00:00:00 2001 From: Ravera Thibault Date: Wed, 3 Jun 2020 16:47:10 -0700 Subject: Update src/pyramid/settings.py Co-authored-by: Steve Piercy --- src/pyramid/settings.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/pyramid/settings.py b/src/pyramid/settings.py index fbfa1a57d..d6e4ea9b2 100644 --- a/src/pyramid/settings.py +++ b/src/pyramid/settings.py @@ -21,9 +21,10 @@ def aslist_cronly(value): def aslist(value, flatten=True): - """ Return a list. Separating the input based on newlines - and, if flatten=True (the default), also split on spaces within - each line when value is a string.""" + """ Return a list, separating the input based on newlines. + Also if ``flatten`` is ``True`` (the default), and if the line + is a string, then the line will be split on spaces. + """ values = aslist_cronly(value) if not flatten: return values -- cgit v1.2.3