pyflakes fix

This commit is contained in:
Florent 2013-07-23 13:22:20 +02:00
commit 38b2447321
2 changed files with 3 additions and 4 deletions

View file

@ -17,12 +17,10 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
import urllib
import mechanize
from weboob.tools.browser import BaseBrowser, BrowserIncorrectPassword
from weboob.capabilities.bill import Detail
from decimal import Decimal
from .pages import AmeliBasePage, LoginPage, HomePage, AccountPage, LastPaymentsPage, PaymentDetailsPage, BillsPage
from .pages import LoginPage, HomePage, AccountPage, LastPaymentsPage, PaymentDetailsPage, BillsPage
__all__ = ['AmeliBrowser']

View file

@ -20,8 +20,8 @@
from datetime import datetime
import re
import urllib
from decimal import Decimal
import locale
from weboob.tools.browser import BasePage
from weboob.capabilities.bill import Subscription, Detail, Bill
@ -98,6 +98,7 @@ class PaymentDetailsPage(AmeliBasePage):
id = sub._id + "." + datetime.strftime(id_date, "%Y%m%d")
table = self.document.xpath('//table[@id="DetailPaiement3"]')[idx].xpath('.//tr')
line = 1
last_date = None
for tr in table:
tds = tr.xpath('.//td');
if len(tds) == 0: