jenkins-bot merged this change.
[Cleanup] Remove unused variables and unreachanble code
Fixed the following instances:
scripts\script_wui.py:310: unsatisfiable 'if' condition
Bug: T203395
Change-Id: Iffb96aef4398ab2f9842de9ad18548fe83344442
---
M scripts/script_wui.py
1 file changed, 0 insertions(+), 5 deletions(-)
diff --git a/scripts/script_wui.py b/scripts/script_wui.py
index a1bfbb6..d405e85 100755
--- a/scripts/script_wui.py
+++ b/scripts/script_wui.py
@@ -304,11 +304,6 @@
def wiki_logger(buffer, page, rev=None):
"""Log to wiki."""
- # FIXME: what is this??
- # (might be a problem here for TS and SGE, output string has another
- # encoding)
- if False:
- buffer = buffer.decode(pywikibot.config.console_encoding)
buffer = re.sub(r'\03\{(.*?)\}(.*?)\03\{default\}', r'\g<2>', buffer)
if rev is None:
rev = page.latestRevision()
To view, visit change 477947. To unsubscribe, or for help writing mail filters, visit settings.