Fix more python 3.6 regex DeprecationWarning's

This commit is contained in:
derwinlu 2017-03-29 10:19:47 +02:00
commit 623eb0a4c0
5 changed files with 26 additions and 26 deletions

View file

@ -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(