Skip to content

Commit

Permalink
Fix parameter naming conflict
Browse files Browse the repository at this point in the history
'method_name' parameter from do_flickr_call() method signature
clashes with 'method_name' parameter required by the
Flickr API method flickr.reflection.getMethodInfo
  • Loading branch information
codebicycle authored and sybrenstuvel committed Sep 26, 2017
1 parent a9f4f3d commit 952c133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flickrapi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def __getattr__(self, method_name):

return CallBuilder(self, method_name='flickr.' + method_name)

def do_flickr_call(self, method_name, timeout=None, **kwargs):
def do_flickr_call(self, _method_name, timeout=None, **kwargs):
"""Handle all the regular Flickr API calls.
Example::
Expand All @@ -323,7 +323,7 @@ def do_flickr_call(self, method_name, timeout=None, **kwargs):
params = kwargs.copy()

# Set some defaults
defaults = {'method': method_name,
defaults = {'method': _method_name,
'format': self.default_format}
if 'jsoncallback' not in kwargs:
defaults['nojsoncallback'] = 1
Expand Down

0 comments on commit 952c133

Please sign in to comment.