pep8: Fix indentation is not a multiple of four
autopep8 -a -r -i --select E111 . Manual check.
This commit is contained in:
parent
21e8f82fd7
commit
7aeb3e942e
16 changed files with 24 additions and 24 deletions
|
|
@ -46,7 +46,7 @@ class BanqueAccordModule(Module, CapBank):
|
||||||
self.config['password'].get())
|
self.config['password'].get())
|
||||||
|
|
||||||
def iter_accounts(self):
|
def iter_accounts(self):
|
||||||
return self.browser.get_accounts_list()
|
return self.browser.get_accounts_list()
|
||||||
|
|
||||||
def get_account(self, _id):
|
def get_account(self, _id):
|
||||||
return find_object(self.browser.get_accounts_list(), id=_id, error=AccountNotFound)
|
return find_object(self.browser.get_accounts_list(), id=_id, error=AccountNotFound)
|
||||||
|
|
|
||||||
|
|
@ -452,7 +452,7 @@ class TransactionsPage(BasePage):
|
||||||
|
|
||||||
# XXX Fucking hack to include the check number not displayed in the full label.
|
# XXX Fucking hack to include the check number not displayed in the full label.
|
||||||
if re.match("^CHEQUE ", t.label):
|
if re.match("^CHEQUE ", t.label):
|
||||||
t.label = 'CHEQUE No: %s' % self.parser.tocleanstring(tds[self.COL_REF])
|
t.label = 'CHEQUE No: %s' % self.parser.tocleanstring(tds[self.COL_REF])
|
||||||
|
|
||||||
yield t
|
yield t
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ class CanalplusBrowser(Browser):
|
||||||
elif len(split_path) == 1:
|
elif len(split_path) == 1:
|
||||||
for channel in channels:
|
for channel in channels:
|
||||||
if channel.path_level == 2 and split_path == channel.parent_path:
|
if channel.path_level == 2 and split_path == channel.parent_path:
|
||||||
yield channel
|
yield channel
|
||||||
elif len(split_path) == 2:
|
elif len(split_path) == 2:
|
||||||
subchannels = self.iter_resources(split_path[0:1])
|
subchannels = self.iter_resources(split_path[0:1])
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
|
|
@ -99,8 +99,8 @@ class CmbModule(Module, CapBank):
|
||||||
response = self.browser.open("https://www.cmb.fr/domiweb/servlet/Identification", allow_redirects=False, data=data)
|
response = self.browser.open("https://www.cmb.fr/domiweb/servlet/Identification", allow_redirects=False, data=data)
|
||||||
|
|
||||||
if response.status_code == 302:
|
if response.status_code == 302:
|
||||||
self.islogged=True
|
self.islogged=True
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
raise BrowserIncorrectPassword()
|
raise BrowserIncorrectPassword()
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ class MovieCrewPage(Page):
|
||||||
person = Person(id, name)
|
person = Person(id, name)
|
||||||
person.short_description = role_detail
|
person.short_description = role_detail
|
||||||
yield person
|
yield person
|
||||||
# yield self.browser.get_person(id)
|
# yield self.browser.get_person(id)
|
||||||
|
|
||||||
def iter_persons_ids(self):
|
def iter_persons_ids(self):
|
||||||
tables = self.parser.select(self.document.getroot(), 'table.cast_list')
|
tables = self.parser.select(self.document.getroot(), 'table.cast_list')
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ class AccountsList(LoggedPage, HTMLPage):
|
||||||
|
|
||||||
@method
|
@method
|
||||||
class get_transactions_others(generic_transactions):
|
class get_transactions_others(generic_transactions):
|
||||||
item_xpath = '//table'
|
item_xpath = '//table'
|
||||||
|
|
||||||
def get_history_jid(self):
|
def get_history_jid(self):
|
||||||
span = self.doc.xpath('//span[@id="index:panelASV"]')
|
span = self.doc.xpath('//span[@id="index:panelASV"]')
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ class RoadmapSearchPage(Page):
|
||||||
for form in self.browser.forms():
|
for form in self.browser.forms():
|
||||||
try:
|
try:
|
||||||
if form.attrs['id'] == 'rech-iti':
|
if form.attrs['id'] == 'rech-iti':
|
||||||
match = i
|
match = i
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
i += 1
|
i += 1
|
||||||
|
|
|
||||||
|
|
@ -53,9 +53,9 @@ class NectarineModule(Module, CapRadio, CapCollection):
|
||||||
|
|
||||||
def get_radio(self, radio):
|
def get_radio(self, radio):
|
||||||
if not isinstance(radio, Radio):
|
if not isinstance(radio, Radio):
|
||||||
for rad in self.browser.iter_radios_list():
|
for rad in self.browser.iter_radios_list():
|
||||||
if rad.id == radio:
|
if rad.id == radio:
|
||||||
return rad
|
return rad
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def fill_radio(self, radio, fields):
|
def fill_radio(self, radio, fields):
|
||||||
|
|
|
||||||
|
|
@ -54,9 +54,9 @@ class NihonNoOtoModule(Module, CapRadio, CapCollection):
|
||||||
|
|
||||||
def get_radio(self, radio):
|
def get_radio(self, radio):
|
||||||
if not isinstance(radio, Radio):
|
if not isinstance(radio, Radio):
|
||||||
for rad in self.browser.iter_radios_list():
|
for rad in self.browser.iter_radios_list():
|
||||||
if rad.id == radio:
|
if rad.id == radio:
|
||||||
return rad
|
return rad
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def fill_radio(self, radio, fields):
|
def fill_radio(self, radio, fields):
|
||||||
|
|
|
||||||
|
|
@ -126,8 +126,8 @@ class OkCBrowser(Browser):
|
||||||
|
|
||||||
@check_login
|
@check_login
|
||||||
def get_visits(self):
|
def get_visits(self):
|
||||||
self.location('http://m.okcupid.com/visitors')
|
self.location('http://m.okcupid.com/visitors')
|
||||||
return self.page.get_visits()
|
return self.page.get_visits()
|
||||||
|
|
||||||
@check_login
|
@check_login
|
||||||
def get_threads_list(self):
|
def get_threads_list(self):
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ class AloesBrowser(Browser):
|
||||||
if not self.page.login(self.username, self.password) or \
|
if not self.page.login(self.username, self.password) or \
|
||||||
not self.is_logged() or \
|
not self.is_logged() or \
|
||||||
(self.is_on_page(LoginPage) and self.page.is_error()):
|
(self.is_on_page(LoginPage) and self.page.is_error()):
|
||||||
raise BrowserIncorrectPassword()
|
raise BrowserIncorrectPassword()
|
||||||
|
|
||||||
def get_rented_books_list(self):
|
def get_rented_books_list(self):
|
||||||
if not self.is_on_page(RentedPage):
|
if not self.is_on_page(RentedPage):
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ class Paypal(Browser):
|
||||||
step_min=step_min,
|
step_min=step_min,
|
||||||
step_max=step_max,
|
step_max=step_max,
|
||||||
fetch_fn=fetch_fn):
|
fetch_fn=fetch_fn):
|
||||||
yield i
|
yield i
|
||||||
except CSVAlreadyAsked:
|
except CSVAlreadyAsked:
|
||||||
for i in self.download_last_history(account):
|
for i in self.download_last_history(account):
|
||||||
yield i
|
yield i
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,8 @@ class ForeignPage(Page):
|
||||||
|
|
||||||
class CitiesPage(Page):
|
class CitiesPage(Page):
|
||||||
def get_stations(self):
|
def get_stations(self):
|
||||||
result = json.loads(self.document[self.document.find('{'):-2])
|
result = json.loads(self.document[self.document.find('{'):-2])
|
||||||
return result['CITIES']
|
return result['CITIES']
|
||||||
|
|
||||||
|
|
||||||
class SearchPage(Page):
|
class SearchPage(Page):
|
||||||
|
|
|
||||||
|
|
@ -283,7 +283,7 @@ class Application(object):
|
||||||
sub = self._do_complete_obj(backend, fields, sub)
|
sub = self._do_complete_obj(backend, fields, sub)
|
||||||
if self.condition and self.condition.limit and \
|
if self.condition and self.condition.limit and \
|
||||||
self.condition.limit == i:
|
self.condition.limit == i:
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.condition and not self.condition.is_valid(sub):
|
if self.condition and not self.condition.is_valid(sub):
|
||||||
modif += 1
|
modif += 1
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ class MediaPlayer(object):
|
||||||
"""
|
"""
|
||||||
# if flag play_proxy...
|
# if flag play_proxy...
|
||||||
if hasattr(media, '_play_proxy') and media._play_proxy == True:
|
if hasattr(media, '_play_proxy') and media._play_proxy == True:
|
||||||
# use urllib2 to handle redirect and cookies
|
# use urllib2 to handle redirect and cookies
|
||||||
self._play_proxy(media, player_name, args)
|
self._play_proxy(media, player_name, args)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -335,9 +335,9 @@ class Module(object):
|
||||||
if any((tmpproxy, tmpproxys)):
|
if any((tmpproxy, tmpproxys)):
|
||||||
kwargs['proxy'] = {}
|
kwargs['proxy'] = {}
|
||||||
if tmpproxy is not None:
|
if tmpproxy is not None:
|
||||||
kwargs['proxy']['http'] = tmpproxy
|
kwargs['proxy']['http'] = tmpproxy
|
||||||
if tmpproxys is not None:
|
if tmpproxys is not None:
|
||||||
kwargs['proxy']['https'] = tmpproxys
|
kwargs['proxy']['https'] = tmpproxys
|
||||||
|
|
||||||
|
|
||||||
kwargs['logger'] = self.logger
|
kwargs['logger'] = self.logger
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue