Skip to content
Permalink
Browse files

Making flake8 happy.

  • Loading branch information
felixfontein committed Jan 20, 2015
1 parent 0d55d6e commit 6f2021b9c5bb3f257a42559eb5caf08bfcbbcc49
Showing with 7 additions and 6 deletions.
  1. +1 −1 nikola/__main__.py
  2. +6 −3 nikola/nikola.py
  3. +0 −2 nikola/plugins/task/scan_posts.py
@@ -270,7 +270,7 @@ def _generate_stage(self, stages):
gen_name, _, _ = self._get_stage_info(stages[1])
done_deps.append(gen_name)
yield Task(gen_name, None, loader=DelayedLoader(lambda: self._generate_stage(stages[1:]), executed=mid_name))
yield { 'basename': done_name, 'doc': None, 'name': None, 'task_dep': done_deps }
yield {'basename': done_name, 'doc': None, 'name': None, 'task_dep': done_deps}

def load_tasks(self, cmd, opt_values, pos_args):
if self.quiet:
@@ -658,9 +658,12 @@ def __init__(self, **config):
task_plugins = self._activate_plugins_of_category("BaseTask")
self.task_stages = defaultdict(list)
for plugin_info in task_plugins:
if type(plugin_info.plugin_object) == EarlyTask: continue
if type(plugin_info.plugin_object) == Task: continue
if type(plugin_info.plugin_object) == LateTask: continue
if type(plugin_info.plugin_object) == EarlyTask:
continue
if type(plugin_info.plugin_object) == Task:
continue
if type(plugin_info.plugin_object) == LateTask:
continue
stage = plugin_info.plugin_object.get_stage()
self.task_stages[stage].append(plugin_info.plugin_object)
self._activate_plugins_of_category("TaskMultiplier")
@@ -24,8 +24,6 @@
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

from copy import copy

from nikola.plugin_categories import BaseTask


0 comments on commit 6f2021b

Please sign in to comment.