Commit a88b94cc authored by Alexander Alekhin's avatar Alexander Alekhin

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)
parent bdf66153
...@@ -250,7 +250,7 @@ class CppHeaderParser(object): ...@@ -250,7 +250,7 @@ class CppHeaderParser(object):
l = l[:npos] + l[npos3+1:] l = l[:npos] + l[npos3+1:]
l = self.batch_replace(l, [("CV_EXPORTS_W", ""), ("CV_EXPORTS", ""), ("public virtual ", " "), ("public ", " "), ("::", ".")]).strip() 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] ll = [le for le in ll if le]
classname = ll[1] classname = ll[1]
bases = ll[2:] bases = ll[2:]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment