diff options
author | Max Wittig <max.wittig@siemens.com> | 2019-12-18 13:14:54 +0100 |
---|---|---|
committer | Max Wittig <max.wittig@siemens.com> | 2019-12-18 13:50:19 +0100 |
commit | 9fb46454c6dab1a86ab4492df2368ed74badf7d6 (patch) | |
tree | f2647a64b1fe8309b5c3854575a1b4c4b8a33f82 /gitlab/utils.py | |
parent | af8679ac5c2c2b7774d624bdb1981d0e2374edc1 (diff) | |
download | gitlab-9fb46454c6dab1a86ab4492df2368ed74badf7d6.tar.gz |
refactor: remove six dependency
Diffstat (limited to 'gitlab/utils.py')
-rw-r--r-- | gitlab/utils.py | 4 |
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() |