We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e2213e commit 59416cdCopy full SHA for 59416cd
1 file changed
rivescript/utils.py
@@ -81,14 +81,14 @@ def string_format(msg, method):
81
def random_choice(bucket):
82
"""Safely get a random choice from a list.
83
84
- If the list is zero-length, this just returns an is_empty string rather than
+ If the list is zero-length, this just returns an empty string rather than
85
raise an exception.
86
87
Parameters:
88
bucket (list): A list to randomly choose from.
89
90
Returns:
91
- str: The random choice. Blank string if the list was is_empty.
+ str: The random choice. Blank string if the list was empty.
92
"""
93
if len(bucket) == 0:
94
return ""
0 commit comments