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
|
|
@ -38,6 +38,7 @@ __all__ = ['Cineoob']
|
|||
ROLE_LIST = ['actor','director','writer','composer','producer']
|
||||
COUNTRY_LIST = ['us','fr','de','jp']
|
||||
|
||||
|
||||
class MovieInfoFormatter(IFormatter):
|
||||
MANDATORY_FIELDS = ('id', 'original_title', 'release_date', 'other_titles', 'duration', 'pitch', 'note', 'roles', 'country')
|
||||
|
||||
|
|
@ -100,6 +101,7 @@ def yearsago(years, from_date=None):
|
|||
return from_date.replace(month=2, day=28,
|
||||
year=from_date.year-years)
|
||||
|
||||
|
||||
def num_years(begin, end=None):
|
||||
if end is None:
|
||||
end = datetime.now()
|
||||
|
|
@ -109,6 +111,7 @@ def num_years(begin, end=None):
|
|||
else:
|
||||
return num_years
|
||||
|
||||
|
||||
class PersonInfoFormatter(IFormatter):
|
||||
MANDATORY_FIELDS = ('id', 'name', 'birth_date', 'birth_place', 'short_biography')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue