Double escape binary regexes in module and citeengine searches.

See previous commit for explanation.

(cherry picked from commit 0e3d209295)
This commit is contained in:
Richard Heck 2018-02-01 22:08:55 -05:00
parent 42718b1dbd
commit 92ca5012ce

View File

@ -1511,7 +1511,7 @@ def processModuleFile(file, filename, bool_docbook):
We expect output: We expect output:
"ModuleName" "filename" "Description" "Packages" "Requires" "Excludes" "Category" "ModuleName" "filename" "Description" "Packages" "Requires" "Excludes" "Category"
''' '''
remods = re.compile(b'\DeclareLyXModule\s*(?:\[([^]]*?)\])?{(.*)}') remods = re.compile(b'\\\\DeclareLyXModule\s*(?:\[([^]]*?)\])?{(.*)}')
rereqs = re.compile(b'#+\s*Requires: (.*)') rereqs = re.compile(b'#+\s*Requires: (.*)')
reexcs = re.compile(b'#+\s*Excludes: (.*)') reexcs = re.compile(b'#+\s*Excludes: (.*)')
recaty = re.compile(b'#+\s*Category: (.*)') recaty = re.compile(b'#+\s*Category: (.*)')
@ -1635,7 +1635,7 @@ def processCiteEngineFile(file, filename, bool_docbook):
We expect output: We expect output:
"CiteEngineName" "filename" "CiteEngineType" "CiteFramework" "DefaultBiblio" "Description" "Packages" "CiteEngineName" "filename" "CiteEngineType" "CiteFramework" "DefaultBiblio" "Description" "Packages"
''' '''
remods = re.compile(b'\DeclareLyXCiteEngine\s*(?:\[([^]]*?)\])?{(.*)}') remods = re.compile(b'\\\\DeclareLyXCiteEngine\s*(?:\[([^]]*?)\])?{(.*)}')
redbeg = re.compile(b'#+\s*DescriptionBegin\s*$') redbeg = re.compile(b'#+\s*DescriptionBegin\s*$')
redend = re.compile(b'#+\s*DescriptionEnd\s*$') redend = re.compile(b'#+\s*DescriptionEnd\s*$')
recet = re.compile(b'\s*CiteEngineType\s*(.*)') recet = re.compile(b'\s*CiteEngineType\s*(.*)')