Commit 79bc2869 authored by Tankypon's avatar Tankypon

Correct all errors return by pep8 (almost 100)

parent 8f48e54e
This diff is collapsed.
...@@ -24,7 +24,7 @@ def update_pot(): ...@@ -24,7 +24,7 @@ def update_pot():
'--output', '{}/{}.pot'.format(podir, i18n_domain)] '--output', '{}/{}.pot'.format(podir, i18n_domain)]
for path, names, filenames in os.walk(os.curdir): for path, names, filenames in os.walk(os.curdir):
for f in filenames: for f in filenames:
if f.endswith('.py') : if f.endswith('.py'):
cmd.append(os.path.join(path, f)) cmd.append(os.path.join(path, f))
subprocess.call(cmd) subprocess.call(cmd)
......
...@@ -194,42 +194,44 @@ def setup_logging(verbose): ...@@ -194,42 +194,44 @@ def setup_logging(verbose):
else: else:
level_ = logging.WARNING level_ = logging.WARNING
logging.basicConfig(filename=logfile, format='%(asctime)s %(module)s:%(funcName)s:%(message)s', datefmt='%H:%M:%S', level=level_) logging.basicConfig(filename=logfile,
format='%(asctime)s %(module)s:%(funcName)s:%(message)s',
datefmt='%H:%M:%S',
level=level_)
logging.info("Logging level set to {}".format(logging.getLevelName(logging.root.getEffectiveLevel()))) logging.info("Logging level set to {}".format(logging.getLevelName(logging.root.getEffectiveLevel())))
# dictionnary containing every string to translate in templates # dictionnary containing every string to translate in templates
tpl_msg = { 'tpl_back_to_main' : _('Back to main page'), \ tpl_msg = {'tpl_back_to_main': _('Back to main page'),
'tpl_movie_or_serie' : _('Movie or serie title'), \ 'tpl_movie_or_serie': _('Movie or serie title'),
'tpl_best_dvd' : _("Best DVD's"), \ 'tpl_best_dvd': _("Best DVD's"),
'tpl_popular_series' : _('Popular series'),\ 'tpl_popular_series': _('Popular series'),
'tpl_configuration' : _("Configuration"), \ 'tpl_configuration': _("Configuration"),
'tpl_incache' : _("in cache"), \ 'tpl_incache': _("in cache"),
'tpl_remove_all_t' : _("Remove all finished torrents"), \ 'tpl_remove_all_t': _("Remove all finished torrents"),
'tpl_show_play_link' : _("Show play link at"), \ 'tpl_show_play_link': _("Show play link at"),
'tpl_upload_limit' : _("Set upload limit in kB (-1 is no limit):"), \ 'tpl_upload_limit': _("Set upload limit in kB (-1 is no limit):"),
'tpl_download_limit' : _("Set download limit in kB (-1 is no limit):"), \ 'tpl_download_limit': _("Set download limit in kB (-1 is no limit):"),
'tpl_apply' : _("Apply changes"), \ 'tpl_apply': _("Apply changes"),
'tpl_config_restart' : _("Don't Panic must be restarted for some options to apply"), \ 'tpl_config_restart': _("Don't Panic must be restarted for some options to apply"),
'tpl_footer_bg' : _("Background image"), \ 'tpl_footer_bg': _("Background image"),
'tpl_footer_your' : _("Your page"), \ 'tpl_footer_your': _("Your page"),
'tpl_admin' : _("Administration"), \ 'tpl_admin': _("Administration"),
'tpl_stopdp' : _("Stop Don't Panic"), \ 'tpl_stopdp': _("Stop Don't Panic"),
'tpl_yourpage' : _("This is your page"), \ 'tpl_yourpage': _("This is your page"),
'tpl_unsubscribe' : _("Log out"), \ 'tpl_unsubscribe': _("Log out"),
'tpl_logout' : _("Unsubscribe"), \ 'tpl_logout': _("Unsubscribe"),
'tpl_watchlist' : _("Watchlist"), \ 'tpl_watchlist': _("Watchlist"),
'tpl_movies' : _("Movies"), \ 'tpl_movies': _("Movies"),
'tpl_series' : _("Series"), \ 'tpl_series': _("Series"),
'tpl_schres' : _("Search Results"), \ 'tpl_schres': _("Search Results"),
'tpl_see_also' : _("See also"), \ 'tpl_see_also': _("See also"),
'tpl_director' : _("Director: "), \ 'tpl_director': _("Director: "),
'tpl_writer' : _("Writers: "), \ 'tpl_writer': _("Writers: "),
'tpl_actors' : _("Actors: "), \ 'tpl_actors': _("Actors: "),
'tpl_extrawords' : _("Subtitle (or any extra words):"), \ 'tpl_extrawords': _("Subtitle (or any extra words):"),
'tpl_searchon' : _("Search on:"), \ 'tpl_searchon': _("Search on:"),
'tpl_watchnow' : _("Watch now"), \ 'tpl_watchnow': _("Watch now")
} }
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
  • Maintainer

    Mon pauvre, tu t'es tapé tout ça à revérifier :s

  • J'étais dans le bain alors tant qu'à y être ;)

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment