Browse Source

Remove unnecessary imports in plugins.

main
Elliott Sales de Andrade 12 years ago
committed by Lakshmi Vyasarajan
parent
commit
c86c5910f1
8 changed files with 5 additions and 8 deletions
  1. +1
    -2
      hyde/ext/plugins/combine.py
  2. +1
    -2
      hyde/ext/plugins/depends.py
  3. +1
    -1
      hyde/ext/plugins/grouper.py
  4. +1
    -0
      hyde/ext/plugins/meta.py
  5. +1
    -0
      hyde/ext/plugins/paginator.py
  6. +0
    -1
      hyde/ext/plugins/sphinx.py
  7. +0
    -1
      hyde/ext/plugins/tagger.py
  8. +0
    -1
      hyde/ext/plugins/urls.py

+ 1
- 2
hyde/ext/plugins/combine.py View File

@@ -5,7 +5,6 @@ Contains classes to combine files into one

from fnmatch import fnmatch

from hyde.model import Expando
from hyde.plugin import Plugin
import operator

@@ -131,4 +130,4 @@ class CombinePlugin(Plugin):
if where == "top":
return "".join([r.source.read_all() for r in resources] + [text])
else:
return "".join([text] + [r.source.read_all() for r in resources])
return "".join([text] + [r.source.read_all() for r in resources])

+ 1
- 2
hyde/ext/plugins/depends.py View File

@@ -6,7 +6,6 @@ Depends plugin
"""

from hyde.plugin import Plugin
import re

class DependsPlugin(Plugin):
"""
@@ -57,4 +56,4 @@ class DependsPlugin(Plugin):
resource=resource,
site=self.site,
context=self.site.context))
resource.depends = list(set(resource.depends))
resource.depends = list(set(resource.depends))

+ 1
- 1
hyde/ext/plugins/grouper.py View File

@@ -210,4 +210,4 @@ class GrouperPlugin(Plugin):

for prev, next in pairwalk(walker):
setattr(next, prev_att, prev)
setattr(prev, next_att, next)
setattr(prev, next_att, next)

+ 1
- 0
hyde/ext/plugins/meta.py View File

@@ -2,6 +2,7 @@
"""
Contains classes and utilities related to meta data in hyde.
"""

import re
from hyde.model import Expando
from hyde.plugin import Plugin


+ 1
- 0
hyde/ext/plugins/paginator.py View File

@@ -3,6 +3,7 @@
Paginator plugin. Groups a sorted set of resources into pages and supplies
each page to a copy of the original resource.
"""

import os

from hyde.plugin import Plugin


+ 0
- 1
hyde/ext/plugins/sphinx.py View File

@@ -56,7 +56,6 @@ logger = getLoggerWithNullHandler('hyde.ext.plugins.sphinx')
try:
import sphinx
from sphinx.builders.html import JSONHTMLBuilder
from sphinx.util.osutil import SEP
except ImportError:
logger.error("The sphinx plugin requires sphinx.")
logger.error("`pip install -U sphinx` to get it.")


+ 0
- 1
hyde/ext/plugins/tagger.py View File

@@ -3,7 +3,6 @@
Contains classes and utilities related to tagging
resources in hyde.
"""

from hyde.model import Expando
from hyde.plugin import Plugin
from hyde.site import Node


+ 0
- 1
hyde/ext/plugins/urls.py View File

@@ -2,7 +2,6 @@
"""
Contains classes and utilities related to hyde urls.
"""

from hyde.plugin import Plugin
from hyde.site import Site



Loading…
Cancel
Save