summaryrefslogtreecommitdiff
path: root/gitlab/utils.py
diff options
context:
space:
mode:
authorMax Wittig <max.wittig95@gmail.com>2019-05-16 18:00:34 +0200
committerMax Wittig <max.wittig95@gmail.com>2019-05-16 18:03:56 +0200
commit318d2770cbc90ae4d33170274e214b9d828bca43 (patch)
treec5b6d6d9b57f6642dca83ea33956a4d5ae15e5eb /gitlab/utils.py
parentef32990347d0ab9145b8919d25269766dc2ce445 (diff)
downloadgitlab-refactor/black.tar.gz
refactor: format everything blackrefactor/black
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 49e2c88..6b43800 100644
--- a/gitlab/utils.py
+++ b/gitlab/utils.py
@@ -42,12 +42,12 @@ def copy_dict(dest, src):
# custom_attributes: {'foo', 'bar'} =>
# "custom_attributes['foo']": "bar"
for dict_k, dict_v in v.items():
- dest['%s[%s]' % (k, dict_k)] = dict_v
+ dest["%s[%s]" % (k, dict_k)] = dict_v
else:
dest[k] = v
def sanitized_url(url):
parsed = six.moves.urllib.parse.urlparse(url)
- new_path = parsed.path.replace('.', '%2E')
+ new_path = parsed.path.replace(".", "%2E")
return parsed._replace(path=new_path).geturl()