Easy spacing fixes, trailing stuff
Remove useless trailing \ Remove trailing spaces Add missing empty lines autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 . Diff quickly checked.
This commit is contained in:
parent
c21d1f7925
commit
7094931c92
231 changed files with 474 additions and 67 deletions
|
|
@ -30,6 +30,7 @@ from .paste import PastealaconPaste
|
|||
|
||||
__all__ = ['PastealaconBrowser']
|
||||
|
||||
|
||||
class PastealaconBrowser(BaseBrowser):
|
||||
DOMAIN = 'pastealacon.com'
|
||||
ENCODING = 'ISO-8859-1'
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ from weboob.capabilities.paste import PasteNotFound
|
|||
|
||||
__all__ = ['PastePage', 'PostPage', 'CaptchaPage']
|
||||
|
||||
|
||||
class PastePage(BasePage):
|
||||
def fill_paste(self, paste):
|
||||
root = self.document.getroot()
|
||||
|
|
@ -46,6 +47,7 @@ class PastePage(BasePage):
|
|||
"""
|
||||
return self.group_dict['id']
|
||||
|
||||
|
||||
class PostPage(BasePage):
|
||||
def post(self, paste, expiration=None):
|
||||
self.browser.select_form(name='editor')
|
||||
|
|
@ -55,5 +57,6 @@ class PostPage(BasePage):
|
|||
self.browser['expiry'] = [expiration]
|
||||
self.browser.submit()
|
||||
|
||||
|
||||
class CaptchaPage(BasePage):
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ from weboob.tools.browser import BrowserUnavailable
|
|||
|
||||
from weboob.capabilities.paste import PasteNotFound
|
||||
|
||||
|
||||
class PastealaconTest(BackendTest):
|
||||
BACKEND = 'pastealacon'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue