mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Annotate py3k code when needed.
This commit is contained in:
parent
4ac094966e
commit
149ca493e0
4 changed files with 7 additions and 2 deletions
|
|
@ -246,6 +246,7 @@ def read_file(filename, fmt=None, settings=None):
|
|||
if filename_metadata:
|
||||
match = re.match(filename_metadata, base)
|
||||
if match:
|
||||
# .items() for py3k compat.
|
||||
for k, v in match.groupdict().items():
|
||||
if k not in metadata:
|
||||
k = k.lower() # metadata must be lowercase
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue