~wxbanker-devs/wxbanker/trunk

« back to all changes in this revision

Viewing changes to wxbanker/mint/api.py

  • Committer: Michael Rooney
  • Date: 2011-10-16 14:56:36 UTC
  • Revision ID: mrooney@ubuntu.com-20111016145636-x6kgvn0h8ge3t3v7
support newer beautifulsoup, fixing mint on newer Ubuntu / OSX

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
                balance = float(balanceStr)
112
112
                bankName = h4.find("a").contents[0]
113
113
                accountName = h6.contents[1]
 
114
                # Support BeautifulSoup 3(.2.0)
 
115
                if hasattr(accountName, 'text'):
 
116
                    accountName = accountName.text
114
117
                name = bankName + ' ' + accountName
115
118
                mintAccounts[aid] = {'name': name, 'balance': balance}
116
119