aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/plugins/misc/scan_posts.py
diff options
context:
space:
mode:
Diffstat (limited to 'nikola/plugins/misc/scan_posts.py')
-rw-r--r--nikola/plugins/misc/scan_posts.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/nikola/plugins/misc/scan_posts.py b/nikola/plugins/misc/scan_posts.py
index a6f04e6..1f4f995 100644
--- a/nikola/plugins/misc/scan_posts.py
+++ b/nikola/plugins/misc/scan_posts.py
@@ -24,6 +24,8 @@
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+"""The default post scanner."""
+
from __future__ import unicode_literals, print_function
import glob
import os
@@ -35,13 +37,13 @@ from nikola.post import Post
class ScanPosts(PostScanner):
- """Render pages into output."""
+
+ """Scan posts in the site."""
name = "scan_posts"
def scan(self):
"""Create list of posts from POSTS and PAGES options."""
-
seen = set([])
if not self.site.quiet:
print("Scanning posts", end='', file=sys.stderr)