sunlightlabs/python-sunlight — comment on commit 0267f9df1e1ead78ebe712656e4bfca4cfc9fc1f
File:  line 0
By eyeseast:

This fails for me. Running Python 2.6.1, I get a `TypeError`:

In [13]: bill = openstates.bill_detail( 'ca', '20092010', 'AB 667')
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (59, 0))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/Users/camico/code/python/php/ in ()
----> 1 bill = openstates.bill_detail( 'ca', '20092010', 'AB 667')

/Users/camico/code/python/php/lib/python2.6/site-packages/sunlight/services/openstates.pyc in bill_detail(self, state, session, bill_id, chamber)
57 lss.append(chamber)
58 lss.append(bill_id)
---> 59 return self.get(lss)
60
61 def legislators(self, **kwargs):

/Users/camico/code/python/php/lib/python2.6/site-packages/sunlight/service.pyc in get(self, top_level_object, **kwargs)
57 try:
58 r = urlopen(url)
---> 59 return_data = r.read().decode(encoding='UTF-8')
60 return self._decode_response(return_data)
61 except HTTPError as e:

TypeError: decode() takes no keyword arguments