diff --git a/zerver/tests/test_alert_words.py b/zerver/tests/test_alert_words.py index 1ce0b63376..0cf0fcdc45 100644 --- a/zerver/tests/test_alert_words.py +++ b/zerver/tests/test_alert_words.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import print_function from zerver.lib.alert_words import ( add_user_alert_words, diff --git a/zerver/tests/test_attachments.py b/zerver/tests/test_attachments.py index ef4a10fa5a..0d0c220c7d 100644 --- a/zerver/tests/test_attachments.py +++ b/zerver/tests/test_attachments.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import print_function import mock diff --git a/zerver/tests/test_bots.py b/zerver/tests/test_bots.py index 9db71d36b7..47e4085072 100644 --- a/zerver/tests/test_bots.py +++ b/zerver/tests/test_bots.py @@ -1,4 +1,3 @@ -from __future__ import print_function import filecmp import os diff --git a/zerver/tests/test_bugdown.py b/zerver/tests/test_bugdown.py index 2e0f734efa..e8fc5fc025 100644 --- a/zerver/tests/test_bugdown.py +++ b/zerver/tests/test_bugdown.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import print_function from django.conf import settings from django.test import TestCase, override_settings diff --git a/zerver/tests/test_compatibility.py b/zerver/tests/test_compatibility.py index 2456b2938c..586dde6cc7 100644 --- a/zerver/tests/test_compatibility.py +++ b/zerver/tests/test_compatibility.py @@ -1,4 +1,3 @@ -from __future__ import print_function from zerver.lib.test_classes import ZulipTestCase diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.py index 8d25a4253b..c9a0a12f99 100644 --- a/zerver/tests/test_events.py +++ b/zerver/tests/test_events.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- # See http://zulip.readthedocs.io/en/latest/events-system.html for # high-level documentation on how this system works. -from __future__ import print_function from typing import Any, Callable, Dict, List, Optional, Union, Text, Tuple import os import shutil diff --git a/zerver/tests/test_export.py b/zerver/tests/test_export.py index f83cc502ef..adc4e007b7 100644 --- a/zerver/tests/test_export.py +++ b/zerver/tests/test_export.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import print_function from django.conf import settings from django.test import TestCase diff --git a/zerver/tests/test_home.py b/zerver/tests/test_home.py index ef9103294e..5fc2852cc4 100644 --- a/zerver/tests/test_home.py +++ b/zerver/tests/test_home.py @@ -1,4 +1,3 @@ -from __future__ import print_function import datetime import os diff --git a/zerver/tests/test_link_embed.py b/zerver/tests/test_link_embed.py index f1346877a9..e7279777ee 100644 --- a/zerver/tests/test_link_embed.py +++ b/zerver/tests/test_link_embed.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import print_function import mock import ujson diff --git a/zerver/tests/test_middleware.py b/zerver/tests/test_middleware.py index 99660bf972..71b95e2136 100644 --- a/zerver/tests/test_middleware.py +++ b/zerver/tests/test_middleware.py @@ -1,4 +1,3 @@ -from __future__ import print_function from django.test import TestCase diff --git a/zerver/tests/test_muting.py b/zerver/tests/test_muting.py index 4dda756bf8..771a08e031 100644 --- a/zerver/tests/test_muting.py +++ b/zerver/tests/test_muting.py @@ -1,4 +1,3 @@ -from __future__ import print_function import ujson diff --git a/zerver/tests/test_narrow.py b/zerver/tests/test_narrow.py index d1321bb23b..6d932f9b13 100644 --- a/zerver/tests/test_narrow.py +++ b/zerver/tests/test_narrow.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- -from __future__ import print_function from django.db import connection from django.test import override_settings from sqlalchemy.sql import ( diff --git a/zerver/tests/test_notifications.py b/zerver/tests/test_notifications.py index 19d8fd24d1..f9bd33e705 100644 --- a/zerver/tests/test_notifications.py +++ b/zerver/tests/test_notifications.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os import random diff --git a/zerver/tests/test_outgoing_webhook_interfaces.py b/zerver/tests/test_outgoing_webhook_interfaces.py index 533f46fde5..eb7e322619 100644 --- a/zerver/tests/test_outgoing_webhook_interfaces.py +++ b/zerver/tests/test_outgoing_webhook_interfaces.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import print_function from typing import Any import mock diff --git a/zerver/tests/test_outgoing_webhook_system.py b/zerver/tests/test_outgoing_webhook_system.py index d1f366a71f..63f8f45663 100644 --- a/zerver/tests/test_outgoing_webhook_system.py +++ b/zerver/tests/test_outgoing_webhook_system.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import print_function import logging import mock diff --git a/zerver/tests/test_presence.py b/zerver/tests/test_presence.py index 877170cbf6..823f6e3e1a 100644 --- a/zerver/tests/test_presence.py +++ b/zerver/tests/test_presence.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import print_function from django.http import HttpResponse from django.utils.timezone import now as timezone_now diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.py index ec134531ac..e395a95d44 100644 --- a/zerver/tests/test_push_notifications.py +++ b/zerver/tests/test_push_notifications.py @@ -1,4 +1,3 @@ -from __future__ import print_function import itertools import requests diff --git a/zerver/tests/test_queue_worker.py b/zerver/tests/test_queue_worker.py index 56eab443e1..156a2f6c54 100644 --- a/zerver/tests/test_queue_worker.py +++ b/zerver/tests/test_queue_worker.py @@ -1,4 +1,3 @@ -from __future__ import print_function import os import time diff --git a/zerver/tests/test_realm.py b/zerver/tests/test_realm.py index 0bf97a40ff..78f28a73ab 100644 --- a/zerver/tests/test_realm.py +++ b/zerver/tests/test_realm.py @@ -1,4 +1,3 @@ -from __future__ import print_function import datetime import ujson diff --git a/zerver/tests/test_report.py b/zerver/tests/test_report.py index 7374d69a38..91218bdbf5 100644 --- a/zerver/tests/test_report.py +++ b/zerver/tests/test_report.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import print_function from typing import Any, Callable, Dict, Iterable, List, Tuple diff --git a/zerver/tests/test_service_bot_system.py b/zerver/tests/test_service_bot_system.py index fe7a66e2fd..a58eb5a839 100644 --- a/zerver/tests/test_service_bot_system.py +++ b/zerver/tests/test_service_bot_system.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import print_function import mock from typing import Any, Union, Mapping, Callable diff --git a/zerver/tests/test_settings.py b/zerver/tests/test_settings.py index cd8b918747..2971d29bc9 100644 --- a/zerver/tests/test_settings.py +++ b/zerver/tests/test_settings.py @@ -1,4 +1,3 @@ -from __future__ import print_function import ujson diff --git a/zerver/tests/test_tornado.py b/zerver/tests/test_tornado.py index 86b780549b..9a6ca399d3 100644 --- a/zerver/tests/test_tornado.py +++ b/zerver/tests/test_tornado.py @@ -5,7 +5,6 @@ and Django test systems. It require to use decorator '@gen.coroutine' for each test case method( see documentation: http://www.tornadoweb.org/en/stable/testing.html). It requires implementation of 'get_app' method to initialize tornado application and launch it. """ -from __future__ import print_function import time diff --git a/zerver/tests/test_tutorial.py b/zerver/tests/test_tutorial.py index 424e01272f..0f95ad5fe0 100644 --- a/zerver/tests/test_tutorial.py +++ b/zerver/tests/test_tutorial.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import print_function from typing import Any, Dict diff --git a/zerver/tests/test_type_debug.py b/zerver/tests/test_type_debug.py index aaa251bf0a..6c2373cd07 100644 --- a/zerver/tests/test_type_debug.py +++ b/zerver/tests/test_type_debug.py @@ -1,4 +1,3 @@ -from __future__ import print_function import sys from unittest import TestCase diff --git a/zerver/tests/test_urls.py b/zerver/tests/test_urls.py index 03a7b4ba92..d2c04e3ca6 100644 --- a/zerver/tests/test_urls.py +++ b/zerver/tests/test_urls.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import print_function import importlib import os diff --git a/zerver/tests/test_users.py b/zerver/tests/test_users.py index 0832784611..945aadae93 100644 --- a/zerver/tests/test_users.py +++ b/zerver/tests/test_users.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import print_function from typing import (Any, Dict, Iterable, List, Mapping, Optional, TypeVar, Text, Union) diff --git a/zerver/tests/test_zephyr.py b/zerver/tests/test_zephyr.py index 6ea7e9df76..4109c51d80 100644 --- a/zerver/tests/test_zephyr.py +++ b/zerver/tests/test_zephyr.py @@ -1,4 +1,3 @@ -from __future__ import print_function import ujson