summaryrefslogtreecommitdiff
path: root/gitlab/utils.py
diff options
context:
space:
mode:
authorRoger Meier <r.meier@siemens.com>2019-12-18 15:36:42 +0100
committerGitHub <noreply@github.com>2019-12-18 15:36:42 +0100
commit5fa0e162f561451f7fa487dc4a4ff265c1d37f79 (patch)
tree8890d5767a89adfd412a92e2a9e7d211c5048769 /gitlab/utils.py
parent5a10eb3af52a8619d446616196dd3c0c3b91c395 (diff)
parentc817dccde8c104dcb294bbf1590c7e3ae9539466 (diff)
downloadgitlab-5fa0e162f561451f7fa487dc4a4ff265c1d37f79.tar.gz
Merge pull request #980 from python-gitlab/refactor/cleanup-upgrade
Refactor/cleanup upgrade
Diffstat (limited to 'gitlab/utils.py')
-rw-r--r--gitlab/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/utils.py b/gitlab/utils.py
index 94528e1..0992ed7 100644
--- a/gitlab/utils.py
+++ b/gitlab/utils.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import six
+from urllib.parse import urlparse
class _StdoutStream(object):
@@ -52,6 +52,6 @@ def clean_str_id(id):
def sanitized_url(url):
- parsed = six.moves.urllib.parse.urlparse(url)
+ parsed = urlparse(url)
new_path = parsed.path.replace(".", "%2E")
return parsed._replace(path=new_path).geturl()