Remove dependent module py3kcompat

Module py3kcompat was removed from oslo-incubator, we can use
six directly.

Change-Id: Ib75c8963b9429d67a3c09cd0b4815379693e250a
Closes-Bug: #1280033
This commit is contained in:
ChangBo Guo(gcb)
2014-02-22 11:33:29 +08:00
parent 82fd114017
commit 94d91e6e06
8 changed files with 15 additions and 81 deletions

View File

@@ -18,10 +18,10 @@ import collections
from oslo.config import cfg
import psutil
import six
from six.moves.urllib import parse
import yaml
from stackalytics.openstack.common import log as logging
from stackalytics.openstack.common.py3kcompat import urlutils
from stackalytics.processor import config
from stackalytics.processor import default_data_processor
from stackalytics.processor import lp
@@ -103,7 +103,7 @@ def process_repo(repo, runtime_storage_inst, record_processor_inst):
for branch in branches:
LOG.debug('Processing repo %s, branch %s', uri, branch)
vcs_key = 'vcs:' + str(urlutils.quote_plus(uri) + ':' + branch)
vcs_key = 'vcs:' + str(parse.quote_plus(uri) + ':' + branch)
last_id = runtime_storage_inst.get_by_key(vcs_key)
commit_iterator = vcs_inst.log(branch, last_id)
@@ -118,7 +118,7 @@ def process_repo(repo, runtime_storage_inst, record_processor_inst):
LOG.debug('Processing reviews for repo %s, branch %s', uri, branch)
rcs_key = 'rcs:' + str(urlutils.quote_plus(uri) + ':' + branch)
rcs_key = 'rcs:' + str(parse.quote_plus(uri) + ':' + branch)
last_id = runtime_storage_inst.get_by_key(rcs_key)
review_iterator = rcs_inst.log(branch, last_id)