jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/750637 )
Change subject: [IMPR] Implement a saner command line log ......................................................................
[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(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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,
pywikibot-commits@lists.wikimedia.org