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:
Laurent Bachelier 2013-03-15 20:01:49 +01:00
commit 7094931c92
231 changed files with 474 additions and 67 deletions

View file

@ -40,6 +40,7 @@ class Link(object):
self.title = u''
self.date = None
class ForumPage(PhpBBPage):
def iter_links(self):
for li in self.parser.select(self.document.getroot(), 'ul.forums li.row'):
@ -72,6 +73,7 @@ class ForumPage(PhpBBPage):
yield value, option.text.strip(u'» \xa0\n\r')
class Post(object):
def __init__(self, forum_id, topic_id, id):
self.id = int(id)
@ -84,6 +86,7 @@ class Post(object):
self.signature = u''
self.parent = 0
class TopicPage(PhpBBPage):
def on_loaded(self):
div = self.document.getroot().cssselect('div.pagination')[0]