From 72c230e81d660d99bba38a476357a51ce99b3a63 Mon Sep 17 00:00:00 2001 From: Florent Date: Sun, 3 Feb 2013 11:23:08 +0100 Subject: [PATCH] Small coding style issue --- modules/freemobile/pages/history.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/freemobile/pages/history.py b/modules/freemobile/pages/history.py index 8d55b0de..d12a8338 100644 --- a/modules/freemobile/pages/history.py +++ b/modules/freemobile/pages/history.py @@ -70,18 +70,18 @@ class DetailsPage(BasePage): billid = mydate.replace('-', '') billid = billid[4:8] + billid[2:4] + billid[0:2] bill.id = billid - bill.date = date(*reversed([int(x) for x in mydate.split("-")])) + bill.date = date(*reversed([int(x) + for x in mydate.split("-")])) bill.format = u"pdf" bill._url = alink.attrib.get('href') if "pdfrecap" in alink.attrib.get('href'): bill.id = "recap-" + bill.id localid = re.search('&l=(?P\d*)&id', alink.attrib.get('href')).group('id') - if not self.datebills.has_key(localid): + if localid not in self.datebills: self.datebills[localid] = [] self.datebills[localid].append(bill) - def parse_div(self, divglobal, string, num, inter=False): divs = divglobal.xpath('div[@class="detail"]') # Two informations in one div...