Skip to content

Commit

Permalink
fix spelling mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Sep 9, 2011
1 parent e475ad5 commit ea00fe4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slumber/__init__.py
Expand Up @@ -105,7 +105,7 @@ def __init__(self, *args, **kwargs):
if self._meta.authentication is not None:
self._http.add_credentials(**self._meta.authentication)

def __call__(self, id=None, format=None, url_overide=None):
def __call__(self, id=None, format=None, url_override=None):
"""
Returns a new instance of self modified by one or more of the available
parameters. These allows us to do things like override format for a
Expand All @@ -114,7 +114,7 @@ def __call__(self, id=None, format=None, url_overide=None):
"""

# Short Circuit out if the call is empty
if id is None and format is None and url_overide is None:
if id is None and format is None and url_override is None:
return self

kwargs = dict([x for x in self._meta.__dict__.items() if not x[0].startswith("_")])
Expand All @@ -125,11 +125,11 @@ def __call__(self, id=None, format=None, url_overide=None):
if format is not None:
kwargs["format"] = format

if url_overide is not None:
if url_override is not None:
# @@@ This is hacky and we should probably figure out a better way
# of handling the case when a POST/PUT doesn't return an object
# but a Location to an object that we need to GET.
kwargs["base_url"] = url_overide
kwargs["base_url"] = url_override

return self.__class__(**kwargs)

Expand Down

0 comments on commit ea00fe4

Please sign in to comment.