Browse Source

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 <austin.sun@intel.com>
Sun Austin 3 months ago
parent
commit
bb65ec36e6
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      dcorch/api/proxy/common/utils.py
  2. 1
    1
      dcorch/engine/quota_manager.py

+ 1
- 1
dcorch/api/proxy/common/utils.py View File

@@ -15,7 +15,7 @@
15 15
 
16 16
 from dcorch.common import consts
17 17
 from oslo_log import log as logging
18
-from urlparse import urlparse
18
+from six.moves.urllib.parse import urlparse
19 19
 
20 20
 LOG = logging.getLogger(__name__)
21 21
 

+ 1
- 1
dcorch/engine/quota_manager.py View File

@@ -15,8 +15,8 @@
15 15
 
16 16
 import collections
17 17
 import copy
18
-from Queue import Queue
19 18
 import re
19
+from six.moves.queue import Queue
20 20
 import threading
21 21
 import time
22 22
 

Loading…
Cancel
Save