pyflakes fixes
This commit is contained in:
parent
41412941a9
commit
3b2fb9cfbd
4 changed files with 8 additions and 11 deletions
|
|
@ -51,7 +51,7 @@ class GdfSuezBackend(BaseBackend, ICapBill):
|
||||||
|
|
||||||
def get_subscription(self, _id):
|
def get_subscription(self, _id):
|
||||||
if not _id.isdigit():
|
if not _id.isdigit():
|
||||||
raise SubscriptionnotFound()
|
raise SubscriptionNotFound()
|
||||||
with self.browser:
|
with self.browser:
|
||||||
subscription = self.browser.get_subscription(_id)
|
subscription = self.browser.get_subscription(_id)
|
||||||
if not subscription:
|
if not subscription:
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from datetime import datetime, date
|
from datetime import date
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
|
@ -100,10 +100,8 @@ class PdfPage():
|
||||||
footnote = re.compile(r'\([0-9]\) ') # (f)
|
footnote = re.compile(r'\([0-9]\) ') # (f)
|
||||||
ht = re.compile('HT par mois')
|
ht = re.compile('HT par mois')
|
||||||
base = re.compile('la base de')
|
base = re.compile('la base de')
|
||||||
begindate = re.compile(' \d\d\/\d\d ') # MM/DD
|
|
||||||
enddate = re.compile('\d\d\/\d\d\/\d\d') # YY/MM/DD
|
enddate = re.compile('\d\d\/\d\d\/\d\d') # YY/MM/DD
|
||||||
endwithdigit = re.compile('\d+$') # blah blah 42
|
endwithdigit = re.compile('\d+$') # blah blah 42
|
||||||
endwitheuro = re.compile('€$') # blah 00,00 €
|
|
||||||
textwithcoma = re.compile('([a-z]|\d{4})\,') # blah 2012, blah blah
|
textwithcoma = re.compile('([a-z]|\d{4})\,') # blah 2012, blah blah
|
||||||
|
|
||||||
# Parsing
|
# Parsing
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,9 @@
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from datetime import datetime, date
|
from datetime import date
|
||||||
|
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
from weboob.tools.mech import ClientForm
|
|
||||||
from weboob.capabilities.bill import Subscription
|
from weboob.capabilities.bill import Subscription
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'HomePage', 'AccountPage', 'TimeoutPage']
|
__all__ = ['LoginPage', 'HomePage', 'AccountPage', 'TimeoutPage']
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue