From f69d71c3b1c7f530ac36aa87d62941c45894b78a Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Tue, 12 Dec 2017 07:32:14 -0600 Subject: [PATCH] bots: Remove unneeded __future__ imports. --- zulip_bots/zulip_bots/bots/converter/converter.py | 3 --- zulip_bots/zulip_bots/bots/dialogflow/dialogflow.py | 1 - zulip_bots/zulip_bots/bots/followup/test_followup.py | 3 --- zulip_bots/zulip_bots/bots/giphy/giphy.py | 5 ----- zulip_bots/zulip_bots/bots/google_search/google_search.py | 1 - .../zulip_bots/bots/google_translate/google_translate.py | 3 --- zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py | 3 --- zulip_bots/zulip_bots/bots/weather/weather.py | 1 - zulip_bots/zulip_bots/bots/wikipedia/wikipedia.py | 2 -- zulip_bots/zulip_bots/bots/yoda/yoda.py | 2 -- zulip_bots/zulip_bots/bots/youtube/test_youtube.py | 2 -- zulip_bots/zulip_bots/bots/youtube/youtube.py | 2 -- 12 files changed, 28 deletions(-) diff --git a/zulip_bots/zulip_bots/bots/converter/converter.py b/zulip_bots/zulip_bots/bots/converter/converter.py index d74a193..68be264 100644 --- a/zulip_bots/zulip_bots/bots/converter/converter.py +++ b/zulip_bots/zulip_bots/bots/converter/converter.py @@ -1,8 +1,5 @@ # See readme.md for instructions on running this code. -from __future__ import absolute_import -from __future__ import division - import copy import importlib from math import log10, floor diff --git a/zulip_bots/zulip_bots/bots/dialogflow/dialogflow.py b/zulip_bots/zulip_bots/bots/dialogflow/dialogflow.py index c3838b7..ea85c3e 100644 --- a/zulip_bots/zulip_bots/bots/dialogflow/dialogflow.py +++ b/zulip_bots/zulip_bots/bots/dialogflow/dialogflow.py @@ -1,5 +1,4 @@ # See readme.md for instructions on running this code. -from __future__ import print_function import logging from six.moves.urllib import parse import json diff --git a/zulip_bots/zulip_bots/bots/followup/test_followup.py b/zulip_bots/zulip_bots/bots/followup/test_followup.py index 564d872..7f59504 100755 --- a/zulip_bots/zulip_bots/bots/followup/test_followup.py +++ b/zulip_bots/zulip_bots/bots/followup/test_followup.py @@ -1,6 +1,3 @@ -from __future__ import absolute_import -from __future__ import print_function - from zulip_bots.test_lib import ( StubBotHandler, StubBotTestCase, diff --git a/zulip_bots/zulip_bots/bots/giphy/giphy.py b/zulip_bots/zulip_bots/bots/giphy/giphy.py index 3f6b887..f49812b 100644 --- a/zulip_bots/zulip_bots/bots/giphy/giphy.py +++ b/zulip_bots/zulip_bots/bots/giphy/giphy.py @@ -1,8 +1,3 @@ -# To use this plugin, you need to set up the Giphy API key for this bot in -# giphy.conf in this (zulip_bots/bots/giphy/giphy/) directory. - -from __future__ import absolute_import -from __future__ import print_function from six.moves.configparser import SafeConfigParser from typing import Dict, Any, Union import requests diff --git a/zulip_bots/zulip_bots/bots/google_search/google_search.py b/zulip_bots/zulip_bots/bots/google_search/google_search.py index 207bdce..82a2b18 100644 --- a/zulip_bots/zulip_bots/bots/google_search/google_search.py +++ b/zulip_bots/zulip_bots/bots/google_search/google_search.py @@ -1,5 +1,4 @@ # See readme.md for instructions on running this code. -from __future__ import print_function import logging from six.moves.urllib import parse diff --git a/zulip_bots/zulip_bots/bots/google_translate/google_translate.py b/zulip_bots/zulip_bots/bots/google_translate/google_translate.py index a41b199..7df1769 100644 --- a/zulip_bots/zulip_bots/bots/google_translate/google_translate.py +++ b/zulip_bots/zulip_bots/bots/google_translate/google_translate.py @@ -1,9 +1,6 @@ # To use this plugin, you need to set up the Google Cloud API key for this bot in # googletranslate.conf in this (zulip_bots/bots/googletranslate/) directory. -from __future__ import absolute_import -from __future__ import print_function - import requests class GoogleTranslateHandler(object): diff --git a/zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py b/zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py index d9c70a4..e8ad8b7 100644 --- a/zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py +++ b/zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py @@ -1,6 +1,3 @@ - -from __future__ import absolute_import -from __future__ import print_function import copy import random from six.moves import range diff --git a/zulip_bots/zulip_bots/bots/weather/weather.py b/zulip_bots/zulip_bots/bots/weather/weather.py index a14b2d3..af58642 100644 --- a/zulip_bots/zulip_bots/bots/weather/weather.py +++ b/zulip_bots/zulip_bots/bots/weather/weather.py @@ -1,5 +1,4 @@ # See readme.md for instructions on running this code. -from __future__ import print_function import requests import json diff --git a/zulip_bots/zulip_bots/bots/wikipedia/wikipedia.py b/zulip_bots/zulip_bots/bots/wikipedia/wikipedia.py index b9fa991..c6a88cf 100644 --- a/zulip_bots/zulip_bots/bots/wikipedia/wikipedia.py +++ b/zulip_bots/zulip_bots/bots/wikipedia/wikipedia.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import -from __future__ import print_function import requests import logging import re diff --git a/zulip_bots/zulip_bots/bots/yoda/yoda.py b/zulip_bots/zulip_bots/bots/yoda/yoda.py index c5a1d00..b330b70 100644 --- a/zulip_bots/zulip_bots/bots/yoda/yoda.py +++ b/zulip_bots/zulip_bots/bots/yoda/yoda.py @@ -1,6 +1,4 @@ # See readme.md for instructions on running this code. - -from __future__ import print_function import logging import ssl import sys diff --git a/zulip_bots/zulip_bots/bots/youtube/test_youtube.py b/zulip_bots/zulip_bots/bots/youtube/test_youtube.py index fea4aaf..16c98d0 100644 --- a/zulip_bots/zulip_bots/bots/youtube/test_youtube.py +++ b/zulip_bots/zulip_bots/bots/youtube/test_youtube.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - from unittest.mock import patch from requests.exceptions import HTTPError, ConnectionError diff --git a/zulip_bots/zulip_bots/bots/youtube/youtube.py b/zulip_bots/zulip_bots/bots/youtube/youtube.py index d975cc1..6404163 100644 --- a/zulip_bots/zulip_bots/bots/youtube/youtube.py +++ b/zulip_bots/zulip_bots/bots/youtube/youtube.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import requests import logging import sys