pep8 blank lines fixes
flake8 --select W391,E302,E301,E304 autopep8 can't fix W391 even though it claims it can. Fixed using a simple custom script.
This commit is contained in:
parent
be2c8bd789
commit
448c06d125
142 changed files with 249 additions and 25 deletions
|
|
@ -266,5 +266,3 @@ class OkCBrowser(Browser):
|
|||
self.addheaders = [('Referer', self.page.url), ('Content-Type', 'application/x-www-form-urlencoded;charset=UTF-8')]
|
||||
self.open('http://m.okcupid.com%s' %abs_url, data=data)
|
||||
return True
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ from weboob.capabilities.contact import ProfileNode
|
|||
from weboob.tools.html import html2text
|
||||
from weboob.tools.date import local2utc
|
||||
|
||||
|
||||
class LoginPage(Page):
|
||||
def login(self, username, password):
|
||||
self.browser.select_form(name='loginf')
|
||||
|
|
@ -191,6 +192,7 @@ class PostMessagePage(Page):
|
|||
self.browser['body'] = content.encode('utf-8')
|
||||
self.browser.submit()
|
||||
|
||||
|
||||
class VisitsPage(Page):
|
||||
def get_visits(self):
|
||||
ul_item = self.parser.select(self.document.getroot(), '//*[@id="page_content"]/ul[3]', method='xpath')[0]
|
||||
|
|
@ -206,6 +208,7 @@ class VisitsPage(Page):
|
|||
})
|
||||
return visitors
|
||||
|
||||
|
||||
class QuickMatchPage(Page):
|
||||
def get_id(self):
|
||||
element = self.parser.select(self.document.getroot(), '//*[@id="sn"]', method='xpath')[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue