Permalink
Browse files

Use **kwargs instead of an explicit dict.

  • Loading branch information...
1 parent be95951 commit f62df7a5a182b148c841af4fdf3bf4ba64d192bd @boucher boucher committed Feb 5, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 stripe/__init__.py
View
6 stripe/__init__.py
@@ -465,7 +465,7 @@ def handle_urllib2_error(self, e, abs_url):
class StripeObject(object):
_permanent_attributes = set(['api_key'])
- def __init__(self, id=None, api_key=None, params={}):
+ def __init__(self, id=None, api_key=None, **params):
self.__dict__['_values'] = set()
self.__dict__['_unsaved_values'] = set()
self.__dict__['_transient_values'] = set()
@@ -599,8 +599,8 @@ def _ident(self):
return [self.get('id')]
@classmethod
- def retrieve(cls, id, api_key=None, params={}):
- instance = cls(id, api_key, params)
+ def retrieve(cls, id, api_key=None, **params):
+ instance = cls(id, api_key, **params)
instance.refresh()
return instance

0 comments on commit f62df7a

Please sign in to comment.