Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Remove vestigial default arg to __getitem__
Browse files Browse the repository at this point in the history
Holdover from when it was _get.
  • Loading branch information
chadwhitacre committed Mar 4, 2014
1 parent 4a25b78 commit c1cc22a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gittip/billing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class BalancedThing(object):
_customer = None # underlying balanced.Customer object
_thing = None # underlying balanced.{BankAccount,Card} object

def __getitem__(self, key, default=""):
def __getitem__(self, key):
"""Given a name, return a unicode.
Allow subclasses to provide a flat set of keys, which, under the hood,
Expand All @@ -225,8 +225,6 @@ def __getitem__(self, key, default=""):
raise KeyError("{} not found".format(val))
if out is None:
break
if out is None:
out = default
return out

def __init__(self, balanced_customer_href):
Expand Down

0 comments on commit c1cc22a

Please sign in to comment.