Skip to content

Commit

Permalink
Making flake8 happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jan 20, 2015
1 parent 0d55d6e commit 6f2021b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion nikola/__main__.py
Expand Up @@ -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:
Expand Down
9 changes: 6 additions & 3 deletions nikola/nikola.py
Expand Up @@ -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")
Expand Down
2 changes: 0 additions & 2 deletions nikola/plugins/task/scan_posts.py
Expand Up @@ -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


Expand Down

0 comments on commit 6f2021b

Please sign in to comment.