jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/615407 )
Change subject: [4.0] remove Python 2 code parts in generate_family_file.py ......................................................................
[4.0] remove Python 2 code parts in generate_family_file.py
Change-Id: I3fd36fee5372c1ba4419589d0d890e46dbf63b86 --- M generate_family_file.py 1 file changed, 2 insertions(+), 14 deletions(-)
Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
diff --git a/generate_family_file.py b/generate_family_file.py index efaa5a1..25d6e22 100755 --- a/generate_family_file.py +++ b/generate_family_file.py @@ -6,25 +6,15 @@ # # Distributed under the terms of the MIT license # -from __future__ import (absolute_import, division, - print_function, unicode_literals) - -# system imports import codecs import os import sys
from os import environ, getenv - -# creating & retrieving urls -if sys.version_info[0] > 2: - from urllib.parse import urlparse -else: # Python 2 - input = raw_input # noqa: F821 - from urlparse import urlparse +from urllib.parse import urlparse
-class FamilyFileGenerator(object): +class FamilyFileGenerator:
"""Family file creator."""
@@ -170,8 +160,6 @@
Please do not commit this to the Git repository! """ -from __future__ import absolute_import, division, unicode_literals - from pywikibot import family from pywikibot.tools import deprecated
pywikibot-commits@lists.wikimedia.org