jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[spelling] Fix spelling mistake with ValueError exception

Change-Id: Idb404a82e07fb2e08746a31935db84e2d86fab5b
---
M pywikibot/userinterfaces/buffer_interface.py
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/pywikibot/userinterfaces/buffer_interface.py b/pywikibot/userinterfaces/buffer_interface.py
index 7a58c2a..ac9795d 100755
--- a/pywikibot/userinterfaces/buffer_interface.py
+++ b/pywikibot/userinterfaces/buffer_interface.py
@@ -1,6 +1,6 @@
"""Non-interactive interface that stores output."""
#
-# (C) Pywikibot team, 2021
+# (C) Pywikibot team, 2021-2022
#
# Distributed under the terms of the MIT license.
#
@@ -13,9 +13,6 @@
from pywikibot.userinterfaces._interface_base import ABUIC


-BAD_BUFFER_TYPE = 'BUG: bufffer can only contain logs and strings, had {}'
-
-
class UI(ABUIC):

"""Collects output into an unseen buffer."""
@@ -66,7 +63,9 @@
elif isinstance(record, logging.LogRecord):
output.append(record.getMessage())
else:
- raise ValueError(BAD_BUFFER_TYPE.format(type(record).__name__))
+ raise ValueError(
+ 'BUG: buffer can only contain logs and strings, had {}'
+ .format(type(record).__name__))

return output


To view, visit change 766809. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Idb404a82e07fb2e08746a31935db84e2d86fab5b
Gerrit-Change-Number: 766809
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged