Keep py3.X compatibility for urllib
Change-Id: I0bdf317d29cd83ad1ef9aec3b1646e84df2660de
This commit is contained in:
parent
5ae46608b0
commit
f87d69c497
@ -3,3 +3,4 @@
|
||||
# Not currently needed for anything else.
|
||||
pydot2>=1.0.32
|
||||
PyYAML>=3.1.0
|
||||
six>=1.9.0
|
||||
|
@ -11,10 +11,11 @@
|
||||
# under the License.
|
||||
|
||||
import json
|
||||
import urllib
|
||||
|
||||
import requests
|
||||
|
||||
from six.moves.urllib import parse
|
||||
|
||||
import base
|
||||
|
||||
# Specify stable branch to look for. Some repos contain stable branches
|
||||
@ -29,7 +30,7 @@ class ValidateStableBranches(base.ValidatorBase):
|
||||
def has_stable_branch(repo):
|
||||
response = requests.get(
|
||||
'https://review.openstack.org:443/projects/%s/branches' %
|
||||
urllib.quote_plus(repo))
|
||||
parse.quote_plus(repo))
|
||||
# strip off first few chars because 'the JSON response body starts with
|
||||
# a magic prefix line that must be stripped before feeding the rest of
|
||||
# the response body to a JSON parser'
|
||||
|
@ -29,8 +29,8 @@ import yaml
|
||||
|
||||
import os
|
||||
import sys
|
||||
import urllib
|
||||
|
||||
from six.moves.urllib import parse
|
||||
# List of modules to validate team based tags
|
||||
team_validators = [
|
||||
teamstats.ValidateDiversity,
|
||||
@ -78,7 +78,7 @@ def repo_exists(repo):
|
||||
"""Sometimes the governance docs can get out of sync with repo names."""
|
||||
response = requests.get(
|
||||
'https://review.openstack.org:443/projects/%s/' %
|
||||
urllib.quote_plus(repo))
|
||||
parse.quote_plus(repo))
|
||||
# strip off first few chars because 'the JSON response body starts with
|
||||
# a magic prefix line that must be stripped before feeding the rest of
|
||||
# the response body to a JSON parser'
|
||||
|
Loading…
Reference in New Issue
Block a user