jenkins-bot submitted this change.
[cleanup] Remove Python 2 hints
Change-Id: I4938f593685c9d9178ae6e5cd32c7f1bfcd7ef31
---
M pywikibot/textlib.py
M tests/ui_tests.py
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py
index 471357f..617a7d9 100644
--- a/pywikibot/textlib.py
+++ b/pywikibot/textlib.py
@@ -601,8 +601,7 @@
If it's a string and the replacement was a sequence it converts it into a
Page instance. If the replacement is done via a callable it'll use it like
unlinking and directly replace the link with the text itself. It only
- supports unicode when used by the callable and bytes (str in Python 2) are
- not allowed.
+ supports unicode when used by the callable and bytes are not allowed.
If either the section or label should be used the replacement can be a
function which returns a Link instance and copies the value which should
diff --git a/tests/ui_tests.py b/tests/ui_tests.py
index 52cb8e4..ac68cb9 100644
--- a/tests/ui_tests.py
+++ b/tests/ui_tests.py
@@ -702,7 +702,7 @@
len(self._colors) if self.expect_color else 0)
def _getvalue(self):
- """Get the value of the stream and also decode it on Python 2."""
+ """Get the value of the stream."""
return self.stream.getvalue()
def _encounter_color(self, color, target_stream):
To view, visit change 637598. To unsubscribe, or for help writing mail filters, visit settings.