Use six.moves.urllib.parse instead of the urlparse module.

This commit is contained in:
Berker Peksag
2014-05-26 19:52:18 +03:00
parent 386c9c7c55
commit fd19da346b
10 changed files with 21 additions and 10 deletions

View File

@@ -14,10 +14,12 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import urlparse
import pkg_resources
import pytest
import six.moves.urllib.parse as urlparse
from mediagoblin import mg_globals
from mediagoblin.db.models import User
from mediagoblin.tests.tools import get_app, fixture_add_user

View File

@@ -13,7 +13,8 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import urlparse
import six.moves.urllib.parse as urlparse
from mediagoblin.db.models import User
from mediagoblin.plugins.basic_auth import tools as auth_tools

View File

@@ -13,11 +13,13 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import urlparse
import pkg_resources
import pytest
import mock
import six.moves.urllib.parse as urlparse
from mediagoblin import mg_globals
from mediagoblin.db.base import Session
from mediagoblin.tests.tools import get_app

View File

@@ -16,7 +16,7 @@
import pytest
import urlparse
import six.moves.urllib.parse as urlparse
from mediagoblin.tools import template, mail

View File

@@ -13,11 +13,13 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import urlparse
import pkg_resources
import pytest
import mock
import six.moves.urllib.parse as urlparse
pytest.importorskip("requests")
from mediagoblin import mg_globals

View File

@@ -18,10 +18,11 @@ import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import urlparse
import os
import pytest
import six.moves.urllib.parse as urlparse
from mediagoblin.tests.tools import fixture_add_user
from mediagoblin import mg_globals
from mediagoblin.db.models import MediaEntry, User