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,

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/750637
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ib3bceee4e4bd0038e7cd5d2b2bdf7e171b880c7b
Gerrit-Change-Number: 750637
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to