aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools/routing.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-06-05 19:45:00 +0300
committerBerker Peksag <berker.peksag@gmail.com>2015-06-05 19:45:00 +0300
commit39da9940581c8fea274c026df889069a60bf2cf5 (patch)
tree0dc637c604a558e6a9bb3e38b5595d84e442d01d /mediagoblin/tools/routing.py
parent853b74cd813b3dea3ac351256b3ce1730664d7f9 (diff)
downloadmediagoblin-39da9940581c8fea274c026df889069a60bf2cf5.tar.lz
mediagoblin-39da9940581c8fea274c026df889069a60bf2cf5.tar.xz
mediagoblin-39da9940581c8fea274c026df889069a60bf2cf5.zip
Import urlparse from six.moves to work on both Python 2 and 3.
Diffstat (limited to 'mediagoblin/tools/routing.py')
-rw-r--r--mediagoblin/tools/routing.py4
1 files changed, 3 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
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