summaryrefslogtreecommitdiff
path: root/gitlab/mixins.py
diff options
context:
space:
mode:
authorFrantisek Lachman <flachman@redhat.com>2019-08-14 09:56:53 +0200
committerFrantisek Lachman <flachman@redhat.com>2019-08-14 10:03:47 +0200
commit8fc8e35c63d7ebd80408ae002693618ca16488a7 (patch)
tree9a52cc3b5a8e36f4b4c96289d62e2eaec762e948 /gitlab/mixins.py
parentedb3359fb3a77050d3e162da641445952397279b (diff)
downloadgitlab-8fc8e35c63d7ebd80408ae002693618ca16488a7.tar.gz
fix: remove empty dict default arguments
Signed-off-by: Frantisek Lachman <flachman@redhat.com>
Diffstat (limited to 'gitlab/mixins.py')
-rw-r--r--gitlab/mixins.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/mixins.py b/gitlab/mixins.py
index 01a5b63..c812d66 100644
--- a/gitlab/mixins.py
+++ b/gitlab/mixins.py
@@ -240,7 +240,7 @@ class UpdateMixin(object):
return http_method
@exc.on_http_error(exc.GitlabUpdateError)
- def update(self, id=None, new_data={}, **kwargs):
+ def update(self, id=None, new_data=None, **kwargs):
"""Update an object on the server.
Args:
@@ -255,6 +255,7 @@ class UpdateMixin(object):
GitlabAuthenticationError: If authentication is not correct
GitlabUpdateError: If the server cannot perform the request
"""
+ new_data = new_data or {}
if id is None:
path = self.path