From 85daf12fbd4bd25c139d453c56535e6c4fe46e2c Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sun, 9 Oct 2022 13:49:36 +0200 Subject: [PATCH] Chore: Remove Python 2 compatibility --- test/test_plugin_bulksms.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/test_plugin_bulksms.py b/test/test_plugin_bulksms.py index 7c56de65..fba74d02 100644 --- a/test/test_plugin_bulksms.py +++ b/test/test_plugin_bulksms.py @@ -22,13 +22,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -try: - # Python 3.x - from unittest import mock - -except ImportError: - # Python 2.7 - import mock +from unittest import mock import requests from json import loads