jenkins-bot submitted this change.
[IMPR] Implement a saner command line log
Use repr string instead of fixes singlequotes
Change-Id: Ib3bceee4e4bd0038e7cd5d2b2bdf7e171b880c7b
---
M pywikibot/editor.py
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pywikibot/editor.py b/pywikibot/editor.py
index e40be73..600522c 100644
--- a/pywikibot/editor.py
+++ b/pywikibot/editor.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
"""Text editor class for your favourite editor."""
#
-# (C) Pywikibot team, 2004-2020
+# (C) Pywikibot team, 2004-2021
#
# Distributed under the terms of the MIT license.
#
@@ -69,7 +69,7 @@
@staticmethod
def _concat(command: Sequence[str]) -> str:
- return ' '.join("'{}'".format(part) if ' ' in part else part
+ return ' '.join('{!r}'.format(part) if ' ' in part else part
for part in command)
def edit(self, text: str, jumpIndex: Optional[int] = None,
To view, visit change 750637. To unsubscribe, or for help writing mail filters, visit settings.