Skip to content

Commit

Permalink
Merge pull request #4 from mentix02/patch-1
Browse files Browse the repository at this point in the history
Replaced mutable default argument
  • Loading branch information
pabluk authored Mar 17, 2021
2 parents 71904d7 + b56187d commit 152145e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ Author and contributors
* Pablo SEMINARIO (`@pabluk <https://github.com/pabluk>`_)
* Caleb FANGMEIER (`@cfangmeier <https://github.com/cfangmeier>`_)
* Rarm NAGALINGAM (`@snowjet <https://github.com/snowjet/>`_)
* Manan (`@mentix02 <https://github.com/mentix02/>`_)
5 changes: 4 additions & 1 deletion libgravatar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,11 @@ def test(self):
"""Test the API."""
return self._call('test')

def _call(self, method, params={}):
def _call(self, method, params=None):
"""Call a method from the API, gets 'grav.' prepended to it."""

if params is None:
params = {}

args = {
'apikey': self.apikey,
Expand Down

0 comments on commit 152145e

Please sign in to comment.