From 01f193c5a13356999bab436e2c70be19daba79e4 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Tue, 27 Nov 2018 10:43:53 +0100 Subject: [PATCH] [creditdunord] Re-indented whole CDNBasePage class 3 indentation spaces instead of 4 --- modules/creditdunord/pages.py | 60 +++++++++++++++++------------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/modules/creditdunord/pages.py b/modules/creditdunord/pages.py index a5da80baa0..a9655f598a 100755 --- a/modules/creditdunord/pages.py +++ b/modules/creditdunord/pages.py @@ -189,36 +189,36 @@ def get_profile(self): class CDNBasePage(HTMLPage): - def get_from_js(self, pattern, end_pattern, is_list=False): - """ - find a pattern in any javascript text - """ - for script in self.doc.xpath('//script'): - txt = script.text - if txt is None: - continue - - start = txt.find(pattern) - if start < 0: - continue - - values = [] - while start >= 0: - start += len(pattern) - end = txt.find(end_pattern, start) - values.append(txt[start:end]) - - if not is_list: - break - - start = txt.find(pattern, end) - return ','.join(values) - - def get_execution(self): - return self.get_from_js("name: 'execution', value: '", "'") - - def iban_go(self): - return '%s%s' % ('/vos-comptes/IPT/cdnProxyResource', self.get_from_js('C_PROXY.StaticResourceClientTranslation( "', '"')) + def get_from_js(self, pattern, end_pattern, is_list=False): + """ + find a pattern in any javascript text + """ + for script in self.doc.xpath('//script'): + txt = script.text + if txt is None: + continue + + start = txt.find(pattern) + if start < 0: + continue + + values = [] + while start >= 0: + start += len(pattern) + end = txt.find(end_pattern, start) + values.append(txt[start:end]) + + if not is_list: + break + + start = txt.find(pattern, end) + return ','.join(values) + + def get_execution(self): + return self.get_from_js("name: 'execution', value: '", "'") + + def iban_go(self): + return '%s%s' % ('/vos-comptes/IPT/cdnProxyResource', self.get_from_js('C_PROXY.StaticResourceClientTranslation( "', '"')) class AccountsPage(LoggedPage, CDNBasePage): -- GitLab