Mercurial > piecrust2
diff piecrust/sources/posts.py @ 95:cb6eadea0845
Fixed a bug with the `shallow` source. Add unit tests.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 07 Sep 2014 21:37:10 -0700 |
parents | b3ce11b2cf36 |
children | d74ae33832ae |
line wrap: on
line diff
--- a/piecrust/sources/posts.py Sun Sep 07 21:36:42 2014 -0700 +++ b/piecrust/sources/posts.py Sun Sep 07 21:37:10 2014 -0700 @@ -205,7 +205,7 @@ year = int(yd) year_dir = os.path.join(self.fs_endpoint_path, yd) - _, __, filenames = os.walk(year_dir) + _, __, filenames = next(os.walk(year_dir)) for f in filenames: match = file_pattern.match(f) if match is None: