bots: Remove unneeded __future__ imports.
This commit is contained in:
parent
fd069dff82
commit
f69d71c3b1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
|
||||
from zulip_bots.test_lib import (
|
||||
StubBotHandler,
|
||||
StubBotTestCase,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
import copy
|
||||
import random
|
||||
from six.moves import range
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# See readme.md for instructions on running this code.
|
||||
from __future__ import print_function
|
||||
import requests
|
||||
import json
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
import requests
|
||||
import logging
|
||||
import re
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
# See readme.md for instructions on running this code.
|
||||
|
||||
from __future__ import print_function
|
||||
import logging
|
||||
import ssl
|
||||
import sys
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from unittest.mock import patch
|
||||
from requests.exceptions import HTTPError, ConnectionError
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
import requests
|
||||
import logging
|
||||
import sys
|
||||
|
|
Loading…
Reference in a new issue