Commit 0809ae56 authored by Andrey Kamaev's avatar Andrey Kamaev

Fixed regression in python wrappers generator

parent 5c528def
......@@ -216,10 +216,13 @@ class ClassInfo(object):
self.bases = decl[1].split()[1:]
if len(self.bases) > 1:
print "Warning: class %s has more than 1 base class (not supported by Python C extensions)" % (self.name,)
print "Bases: ", self.bases
print "Bases: ", " ".join(self.bases)
print "Only the first base class will be used"
self.bases = self.bases[:1]
self.bases = [self.bases[0].strip(",")]
#return sys.exit(-1)
if self.bases and self.bases[0].startswith("cv::"):
self.bases[0] = self.bases[0][4:]
print self.bases, decl[1]
for m in decl[2]:
if m.startswith("="):
self.wname = m[1:]
......
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