jenkins-bot submitted this change.
[cleanup] Remove unused imports
Change-Id: Ie328e0bca622bf10ea7dc5d4fceb983fb1098e12
---
M pywikibot/login.py
M scripts/interwikidata.py
M tests/__init__.py
M tests/archivebot_tests.py
M tests/category_tests.py
M tests/family_tests.py
6 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/pywikibot/login.py b/pywikibot/login.py
index e383206..aa436d5 100644
--- a/pywikibot/login.py
+++ b/pywikibot/login.py
@@ -12,7 +12,6 @@
from warnings import warn
import pywikibot
-import pywikibot.data.api
from pywikibot import __url__, config
from pywikibot.backports import Dict, Tuple
from pywikibot.comms import http
diff --git a/scripts/interwikidata.py b/scripts/interwikidata.py
index fcd053a..3628b2b 100755
--- a/scripts/interwikidata.py
+++ b/scripts/interwikidata.py
@@ -36,7 +36,6 @@
from typing import Union
import pywikibot
-import pywikibot.data.api
import pywikibot.i18n
import pywikibot.textlib
from pywikibot import output, pagegenerators, warning
diff --git a/tests/__init__.py b/tests/__init__.py
index 4576123..cfcde1c 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -17,8 +17,6 @@
import warnings
from contextlib import suppress
from itertools import chain
-from unittest import mock # noqa: F401
-from unittest.mock import MagicMock, Mock, patch # noqa: F401
# Verify that the unit tests have a base working environment:
# - requests is mandatory
diff --git a/tests/archivebot_tests.py b/tests/archivebot_tests.py
index fc84942..fdbd4ac 100755
--- a/tests/archivebot_tests.py
+++ b/tests/archivebot_tests.py
@@ -10,7 +10,6 @@
from datetime import datetime, timedelta
import pywikibot
-import pywikibot.page
from pywikibot.exceptions import Error
from pywikibot.textlib import TimeStripper
from scripts import archivebot
diff --git a/tests/category_tests.py b/tests/category_tests.py
index fedad53..920f7d0 100755
--- a/tests/category_tests.py
+++ b/tests/category_tests.py
@@ -9,7 +9,6 @@
from contextlib import suppress
import pywikibot
-import pywikibot.page
from pywikibot.exceptions import IsNotRedirectPageError
from tests.aspects import TestCase
diff --git a/tests/family_tests.py b/tests/family_tests.py
index b212c20..b8b1f33 100755
--- a/tests/family_tests.py
+++ b/tests/family_tests.py
@@ -8,7 +8,7 @@
from collections.abc import Mapping
from contextlib import suppress
-import pywikibot.site
+import pywikibot
from pywikibot.exceptions import UnknownFamilyError
from pywikibot.family import Family, SingleSiteFamily
from pywikibot.tools import suppress_warnings
To view, visit change 778315. To unsubscribe, or for help writing mail filters, visit settings.