From 8fc8e35c63d7ebd80408ae002693618ca16488a7 Mon Sep 17 00:00:00 2001 From: Frantisek Lachman Date: Wed, 14 Aug 2019 09:56:53 +0200 Subject: fix: remove empty dict default arguments Signed-off-by: Frantisek Lachman --- gitlab/mixins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gitlab/mixins.py') 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 -- cgit v1.2.1