summaryrefslogtreecommitdiff
path: root/gitlab/utils.py
diff options
context:
space:
mode:
authorMax Wittig <max.wittig@siemens.com>2019-12-18 13:14:54 +0100
committerMax Wittig <max.wittig@siemens.com>2019-12-18 13:50:19 +0100
commit9fb46454c6dab1a86ab4492df2368ed74badf7d6 (patch)
treef2647a64b1fe8309b5c3854575a1b4c4b8a33f82 /gitlab/utils.py
parentaf8679ac5c2c2b7774d624bdb1981d0e2374edc1 (diff)
downloadgitlab-9fb46454c6dab1a86ab4492df2368ed74badf7d6.tar.gz
refactor: remove six dependency
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()