Skip to content
Snippets Groups Projects
Commit fd66ffb9 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

py3: fech `quote_plus` from the right location

It apparently moved in python 3.
parent 1d34187c
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,14 @@
import sys
import urllib
try:
# python 3
from urllib.parse import quote_plus
except ImportError:
# python 2
from urllib import quote_plus
from . import (
BaseTestSuite,
params_as_kwargs,
......@@ -199,7 +207,7 @@
"""
if partial_id == 'reference':
return self.repo_path
suffix = urllib.quote_plus(partial_id)
suffix = quote_plus(partial_id)
# We need to use the repo name here because the repo doesn't contains
# the hash
partial_name = '{}-partial-{}'.format(self.repo_name, suffix)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment