Fix the default placeholder in textwrap.shorten() to be " [...]".
For some reason I forgot to do it before committing the patch in issue #18585.
diff --git a/Lib/textwrap.py b/Lib/textwrap.py
index b19f124..27ebc16 100644
--- a/Lib/textwrap.py
+++ b/Lib/textwrap.py
@@ -19,7 +19,7 @@
# since 0xa0 is not in range(128).
_whitespace = '\t\n\x0b\x0c\r '
-_default_placeholder = ' (...)'
+_default_placeholder = ' [...]'
class TextWrapper:
"""
@@ -376,7 +376,7 @@
>>> textwrap.shorten("Hello world!", width=12)
'Hello world!'
>>> textwrap.shorten("Hello world!", width=11)
- 'Hello (...)'
+ 'Hello [...]'
"""
w = TextWrapper(width=width, **kwargs)
return w.shorten(text, placeholder=placeholder)