summaryrefslogtreecommitdiffstats
path: root/newton/newton/pub
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-08-31 12:03:23 -0500
committerVictor Morales <victor.morales@intel.com>2017-08-31 17:33:20 -0500
commitbbd8fafbf83c374c70308c17f10228221068d254 (patch)
tree0ea7c559665ff06a591959eefc10bcd7cb7410f3 /newton/newton/pub
parentbbc1222bc0044a813bec83572a1acebcc459d5e0 (diff)
Add Python 3.5 support
Python 2.7 will be supported until 2020[1]. This changes helps to prepares the transition to the transition to Python 3.x and those systems which not support other versions. [1] https://hg.python.org/peps/rev/76d43e52d978 Change-Id: Ic2847e907e29d565c89b0448135393f923de20e3 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: MULTICLOUD-83
Diffstat (limited to 'newton/newton/pub')
-rw-r--r--newton/newton/pub/utils/fileutil.py2
-rw-r--r--newton/newton/pub/utils/restcall.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/newton/newton/pub/utils/fileutil.py b/newton/newton/pub/utils/fileutil.py
index a33186ec..6fbbec7e 100644
--- a/newton/newton/pub/utils/fileutil.py
+++ b/newton/newton/pub/utils/fileutil.py
@@ -12,7 +12,7 @@ import os
import shutil
import logging
import traceback
-import urllib2
+from six.moves import urllib
logger = logging.getLogger(__name__)
diff --git a/newton/newton/pub/utils/restcall.py b/newton/newton/pub/utils/restcall.py
index 9f36909c..d784f09c 100644
--- a/newton/newton/pub/utils/restcall.py
+++ b/newton/newton/pub/utils/restcall.py
@@ -12,9 +12,9 @@
import sys
import traceback
import logging
-import urllib2
+from six.moves import urllib
import uuid
-import httplib
+from six.moves import http_client
import httplib2
from rest_framework import status