Skip to content

Commit

Permalink
Fix #1141 -- ignore .py[co] files in listing index
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Mar 18, 2014
1 parent 1decf9c commit 21b65f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nikola/plugins/task/listings.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def render_listing(in_name, out_name, folders=[], files=[]):

template_deps = self.site.template_system.template_deps('listing.tmpl')
for root, dirs, files in os.walk(kw['listings_folder']):
files = [f for f in files if os.path.splitext(f)[-1] not in ignored_extensions]
# Render all files
out_name = os.path.join(
kw['output_folder'],
Expand Down

0 comments on commit 21b65f1

Please sign in to comment.