Fix urlparse import in tools/routing.py
authorBerker Peksag <berker.peksag@gmail.com>
Sat, 1 Aug 2015 02:05:07 +0000 (05:05 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Sat, 1 Aug 2015 02:05:07 +0000 (05:05 +0300)
urlparse is already a function, so we don't need to specify
a module name.

Refs #5339

mediagoblin/tools/routing.py

index 8a30bab207c4a583185deaeb2dbce7ea54c58b48..a2c89f2ac845764330eaf3b10f24ddd2b6bd8ce9 100644 (file)
@@ -80,7 +80,7 @@ def extract_url_arguments(url, urlmap):
     """
     This extracts the URL arguments from a given URL
     """
-    parsed_url = urlparse.urlparse(url)
+    parsed_url = urlparse(url)
     map_adapter = urlmap.bind(
         server_name=parsed_url.netloc,
         script_name=parsed_url.path,