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.
|
# See readme.md for instructions on running this code.
|
||||||
|
|
||||||
from __future__ import absolute_import
|
|
||||||
from __future__ import division
|
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import importlib
|
import importlib
|
||||||
from math import log10, floor
|
from math import log10, floor
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# See readme.md for instructions on running this code.
|
# See readme.md for instructions on running this code.
|
||||||
from __future__ import print_function
|
|
||||||
import logging
|
import logging
|
||||||
from six.moves.urllib import parse
|
from six.moves.urllib import parse
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
from __future__ import absolute_import
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from zulip_bots.test_lib import (
|
from zulip_bots.test_lib import (
|
||||||
StubBotHandler,
|
StubBotHandler,
|
||||||
StubBotTestCase,
|
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 six.moves.configparser import SafeConfigParser
|
||||||
from typing import Dict, Any, Union
|
from typing import Dict, Any, Union
|
||||||
import requests
|
import requests
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# See readme.md for instructions on running this code.
|
# See readme.md for instructions on running this code.
|
||||||
from __future__ import print_function
|
|
||||||
import logging
|
import logging
|
||||||
from six.moves.urllib import parse
|
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
|
# 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.
|
# googletranslate.conf in this (zulip_bots/bots/googletranslate/) directory.
|
||||||
|
|
||||||
from __future__ import absolute_import
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
class GoogleTranslateHandler(object):
|
class GoogleTranslateHandler(object):
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
|
|
||||||
from __future__ import absolute_import
|
|
||||||
from __future__ import print_function
|
|
||||||
import copy
|
import copy
|
||||||
import random
|
import random
|
||||||
from six.moves import range
|
from six.moves import range
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# See readme.md for instructions on running this code.
|
# See readme.md for instructions on running this code.
|
||||||
from __future__ import print_function
|
|
||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
from __future__ import absolute_import
|
|
||||||
from __future__ import print_function
|
|
||||||
import requests
|
import requests
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
# See readme.md for instructions on running this code.
|
# See readme.md for instructions on running this code.
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import logging
|
import logging
|
||||||
import ssl
|
import ssl
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
from requests.exceptions import HTTPError, ConnectionError
|
from requests.exceptions import HTTPError, ConnectionError
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
Loading…
Reference in a new issue