From bb65ec36e69d1a32b037017b8d5a27320a4911c1 Mon Sep 17 00:00:00 2001 From: Sun Austin Date: Fri, 28 Dec 2018 16:33:35 +0800 Subject: [PATCH] FIX: module rename issue for Python 2/3 compatible code import six.moves to fix rename of urlparse and Queue Change-Id: Iee1b6053e4c1a174c40cfa858bf62557d308194a Story: 2004585 Task: 28446 Signed-off-by: Sun Austin --- dcorch/api/proxy/common/utils.py | 2 +- dcorch/engine/quota_manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dcorch/api/proxy/common/utils.py b/dcorch/api/proxy/common/utils.py index 666316e30..6f13a5c96 100644 --- a/dcorch/api/proxy/common/utils.py +++ b/dcorch/api/proxy/common/utils.py @@ -15,7 +15,7 @@ from dcorch.common import consts from oslo_log import log as logging -from urlparse import urlparse +from six.moves.urllib.parse import urlparse LOG = logging.getLogger(__name__) diff --git a/dcorch/engine/quota_manager.py b/dcorch/engine/quota_manager.py index b1d1dfd48..f3939deca 100644 --- a/dcorch/engine/quota_manager.py +++ b/dcorch/engine/quota_manager.py @@ -15,8 +15,8 @@ import collections import copy -from Queue import Queue import re +from six.moves.queue import Queue import threading import time