Fix escaped sequences in regular expressions
Regression after commit bd96a6f7b7,
which changed meaning of these.
Thanks Stephan!
Change-Id: I43cb871de32bd01d98e9adbb6c20b4e3c88ce715
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99348
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
@@ -11,7 +11,7 @@ wiki_pages = [
|
||||
|
||||
# get all commit hashes mentioned in implementer notes
|
||||
wiki_commit_hashes = {}
|
||||
query = re.compile(r'\{\{commit\|(\\w+)\|\\w*\|\\w*\}\}', re.IGNORECASE)
|
||||
query = re.compile(r'\{\{commit\|(\w+)\|\w*\|\w*\}\}', re.IGNORECASE)
|
||||
for page in wiki_pages:
|
||||
r = http.request('GET', page)
|
||||
data = json.loads(r.data.decode('utf-8'))
|
||||
|
||||
@@ -99,7 +99,7 @@ def in_exclusion_set( a ):
|
||||
return False;
|
||||
|
||||
# find defines, excluding the externals folder
|
||||
a = subprocess.Popen(r"git grep -hP '^#define\s+\w\w\w\w+\s*' -- \"[!e][!x][!t]*\" | sort -u", stdout=subprocess.PIPE, shell=True)
|
||||
a = subprocess.Popen("git grep -hP '^#define\\s+\\w\\w\\w\\w+\\s*' -- \"[!e][!x][!t]*\" | sort -u", stdout=subprocess.PIPE, shell=True)
|
||||
|
||||
name_re = re.compile(r"#define\s+(\w+)")
|
||||
with a.stdout as txt:
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import subprocess
|
||||
|
||||
# find typedefs, excluding the externals folder
|
||||
a = subprocess.Popen(r"git grep -P 'typedef\s+.+\s+\w+;' -- \"[!e][!x][!t]*\"", stdout=subprocess.PIPE, shell=True)
|
||||
a = subprocess.Popen("git grep -P 'typedef\\s+.+\\s+\\w+;' -- \"[!e][!x][!t]*\"", stdout=subprocess.PIPE, shell=True)
|
||||
|
||||
# parse out the typedef names
|
||||
typedefSet = set()
|
||||
|
||||
Reference in New Issue
Block a user