mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix more python 3.6 regex DeprecationWarning's
This commit is contained in:
parent
cfcf40f1f8
commit
623eb0a4c0
5 changed files with 26 additions and 26 deletions
|
|
@ -640,9 +640,9 @@ def parse_path_metadata(source_path, settings=None, process=None):
|
|||
|
||||
>>> import pprint
|
||||
>>> settings = {
|
||||
... 'FILENAME_METADATA': '(?P<slug>[^.]*).*',
|
||||
... 'FILENAME_METADATA': r'(?P<slug>[^.]*).*',
|
||||
... 'PATH_METADATA':
|
||||
... '(?P<category>[^/]*)/(?P<date>\d{4}-\d{2}-\d{2})/.*',
|
||||
... r'(?P<category>[^/]*)/(?P<date>\d{4}-\d{2}-\d{2})/.*',
|
||||
... }
|
||||
>>> reader = BaseReader(settings=settings)
|
||||
>>> metadata = parse_path_metadata(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue