From c9409382e4c858a941e12a10a089fd25181de231 Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Thu, 26 Apr 2018 15:12:08 +0200 Subject: [PATCH] [common][testutils] Fix import of urlparse --- beat/web/common/testutils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beat/web/common/testutils.py b/beat/web/common/testutils.py index 5b9553691..c44f68a4c 100644 --- a/beat/web/common/testutils.py +++ b/beat/web/common/testutils.py @@ -31,7 +31,10 @@ import shutil from django.test import TestCase from django.conf import settings -from urlparse import urlparse +try: + from urlparse import urlparse +except ImportError: + from urllib.parse import urlparse import simplejson as json -- GitLab