Commit 92af6d48 authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

Use Python 3 compatible imports

* No relative imports
* Using django.utils.six for modules that have been moved
Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
parent acdb518a
......@@ -23,7 +23,7 @@ import datetime
import jsonfield
import random
import re
import threadlocalrequest
import patchwork.threadlocalrequest as threadlocalrequest
from django.conf import settings
from django.contrib import auth
......
......@@ -21,7 +21,7 @@
# SOFTWARE.
import sys
from cStringIO import StringIO
from django.utils.six import StringIO
from contextlib import contextmanager
from django.core import management
......
......@@ -20,7 +20,7 @@
import datetime
from email.utils import make_msgid
import unittest
import urlparse
from django.utils.six.moves.urllib.parse import urlparse
from django.conf import settings
from django.core.urlresolvers import reverse
......@@ -63,7 +63,7 @@ class XMLRPCTest(LiveServerTestCase):
self.maintainer = TestUser(username='maintainer')
self.maintainer.add_to_maintainers(defaults.project)
p = urlparse.urlparse(self.live_server_url)
p = urlparse(self.live_server_url)
self.url = (p.scheme + '://' + self.maintainer.username + ':' +
self.maintainer.password + '@' + p.netloc + p.path +
reverse('xmlrpc'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment