jenkins-bot has submitted this change and it was merged.
Change subject: Code cleanups: ......................................................................
Code cleanups:
- remove obsolete traceback import - use bot.WARNING instead of logging.WARNING already imported on top - remove unused transLengt variable
Change-Id: Idef11ea1eaa729d76ed5ee40e254bbbd6fb292cc --- M pywikibot/userinterfaces/terminal_interface_base.py 1 file changed, 1 insertion(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved Aaron1011: Looks good to me, but someone else must approve jenkins-bot: Verified
diff --git a/pywikibot/userinterfaces/terminal_interface_base.py b/pywikibot/userinterfaces/terminal_interface_base.py index 9494005..927ec13 100755 --- a/pywikibot/userinterfaces/terminal_interface_base.py +++ b/pywikibot/userinterfaces/terminal_interface_base.py @@ -7,7 +7,6 @@ __version__ = '$Id$'
from . import transliteration -import traceback import re import sys import pywikibot as wikipedia @@ -89,7 +88,7 @@
# handler for levels WARNING and higher warning_handler = TerminalHandler(self, strm=self.stderr) - warning_handler.setLevel(logging.WARNING) + warning_handler.setLevel(WARNING) warning_handler.setFormatter( TerminalFormatter(fmt="%(levelname)s: %(message)s%(newline)s")) root_logger.addHandler(warning_handler) @@ -150,7 +149,6 @@ # mark the transliterated letters in yellow. transliteratedText += '\03{lightyellow}%s\03{default}' \ % transliterated - transLength = len(transliterated) # memorize if we replaced a single letter by multiple # letters. if len(transliterated) > 0:
pywikibot-commits@lists.wikimedia.org