[swig] fix doxy2swig (was failing on macos with python3).
@@ -164,6 +164,9 @@ class Doxy2SWIG:
def write(self, fname):
o = my_open_write(fname)
+ if(sys.version_info > (3, 0)):
+ o.write(''.join(self.pieces))
+ else:
o.write(str(u''.join(self.pieces).encode('utf-8').strip()))
o.write('\n')
o.close()
