mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
build: fix warning in python parser
/usr/lib/python3.5/re.py:203: FutureWarning: split() requires a non-empty pattern match. return _compile(pattern, flags).split(string, maxsplit)
This commit is contained in:
parent
bdf661538d
commit
a88b94cc44
@ -250,7 +250,7 @@ class CppHeaderParser(object):
|
||||
l = l[:npos] + l[npos3+1:]
|
||||
|
||||
l = self.batch_replace(l, [("CV_EXPORTS_W", ""), ("CV_EXPORTS", ""), ("public virtual ", " "), ("public ", " "), ("::", ".")]).strip()
|
||||
ll = re.split(r'\s*[,:]?\s*', l)
|
||||
ll = re.split(r'\s+|\s*[,:]\s*', l)
|
||||
ll = [le for le in ll if le]
|
||||
classname = ll[1]
|
||||
bases = ll[2:]
|
||||
|
Loading…
Reference in New Issue
Block a user