From bf6ae3816fab3dec04161b51a3c6608d42ce0c13 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Fri, 5 Jun 2015 19:45:00 +0300 Subject: [PATCH] Import urlparse from six.moves to work on both Python 2 and 3. --- mediagoblin/tools/routing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mediagoblin/tools/routing.py b/mediagoblin/tools/routing.py index ae7c7154..8a30bab2 100644 --- a/mediagoblin/tools/routing.py +++ b/mediagoblin/tools/routing.py @@ -15,10 +15,12 @@ # along with this program. If not, see . import logging -import urlparse import six + +from six.moves.urllib.parse import urlparse from werkzeug.routing import Map, Rule + from mediagoblin.tools.common import import_component -- 2.25.1