summaryrefslogtreecommitdiff
path: root/gitlab/utils.py
diff options
context:
space:
mode:
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()