jenkins-bot submitted this change.

View Change

Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
[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(-)

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


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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I3fd36fee5372c1ba4419589d0d890e46dbf63b86
Gerrit-Change-Number: 615407
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged