zulip_bots: Move six imports.
This commit is contained in:
parent
0893a5f61e
commit
78d7f9694e
|
@ -1,6 +1,6 @@
|
||||||
# See readme.md for instructions on running this code.
|
# See readme.md for instructions on running this code.
|
||||||
import logging
|
import logging
|
||||||
from six.moves.urllib import parse
|
from urllib import parse
|
||||||
import json
|
import json
|
||||||
|
|
||||||
import apiai
|
import apiai
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from six.moves.configparser import SafeConfigParser
|
from configparser import SafeConfigParser
|
||||||
from typing import Dict, Any, Union
|
from typing import Dict, Any, Union
|
||||||
import requests
|
import requests
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -2,7 +2,7 @@ import re
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import logging
|
import logging
|
||||||
import six.moves.configparser
|
import configparser
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# See readme.md for instructions on running this code.
|
# See readme.md for instructions on running this code.
|
||||||
import logging
|
import logging
|
||||||
from six.moves.urllib import parse
|
from urllib import parse
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import requests
|
import requests
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
from six.moves import urllib
|
import urllib
|
||||||
from zulip_bots.lib import Any
|
from zulip_bots.lib import Any
|
||||||
|
|
||||||
from typing import Optional, Any, Dict
|
from typing import Optional, Any, Dict
|
||||||
|
|
|
@ -8,7 +8,7 @@ import sys
|
||||||
import time
|
import time
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from six.moves import configparser
|
import configparser
|
||||||
|
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ import importlib
|
||||||
import os
|
import os
|
||||||
import zulip_bots.run
|
import zulip_bots.run
|
||||||
from zulip_bots.lib import extract_query_without_mention
|
from zulip_bots.lib import extract_query_without_mention
|
||||||
import six
|
|
||||||
import unittest
|
import unittest
|
||||||
import zulip
|
import zulip
|
||||||
|
|
||||||
|
@ -13,12 +12,8 @@ from importlib import import_module
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
if six.PY2:
|
from unittest import mock
|
||||||
import mock
|
from unittest.mock import patch
|
||||||
from unittest.mock import patch
|
|
||||||
else:
|
|
||||||
from unittest import mock
|
|
||||||
from unittest.mock import patch
|
|
||||||
|
|
||||||
class TestDefaultArguments(TestCase):
|
class TestDefaultArguments(TestCase):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue