We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9011e70 commit 3536a13Copy full SHA for 3536a13
1 file changed
stringutils/__init__.py
@@ -16,7 +16,7 @@ def join(strings, sep=', ', insertend=False):
16
delimiter. If *insertend* is given and true, the delimiter is also included
17
at the end of the string.
18
"""
19
- return sep.join(strings)
+ return sep.join(strings) + (sep if insertend else '')
20
21
def lines(string, keepends=False):
22
0 commit comments