mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Generator.get_files backwards compatibility for 1 path
This should prevent outdated plugins with generators from failing. Also fixes #1382.
This commit is contained in:
parent
40c9406ca4
commit
7fabd712a1
1 changed files with 2 additions and 0 deletions
|
|
@ -119,6 +119,8 @@ class Generator(object):
|
|||
:param extensions: the list of allowed extensions (if False, all
|
||||
extensions are allowed)
|
||||
"""
|
||||
if isinstance(paths, six.string_types):
|
||||
paths = [paths] # backward compatibility for older generators
|
||||
files = []
|
||||
for path in paths:
|
||||
root = os.path.join(self.path, path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue