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

@ -218,6 +218,8 @@ dict_hex = {'á': u'á',
'â': u'â',
'ç': u'ç'
}
def latin2unicode(word):
for key in dict_hex.keys():
word = word.replace(key,dict_hex[key])

View file

@ -187,6 +187,7 @@ class PersonPage(BasePage):
person.thumbnail_url = thumbnail_url
return person
class FilmographyPage(BasePage):
''' Page of detailed filmography of a person, sorted by type of role
This page is easier to parse than the main person page filmography

View file

@ -19,6 +19,7 @@
from weboob.tools.test import BackendTest
class ImdbTest(BackendTest):
BACKEND = 'imdb'
@ -26,7 +27,7 @@ class ImdbTest(BackendTest):
movies = list(self.backend.iter_movies('spiderman'))
for movie in movies:
assert movie.id
def test_get_movie(self):
movie = self.backend.get_movie('tt0079980')
assert movie.id