Commit 4763d803 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #3406 from shiquanwang:Fix-bug-#4003_build-python-binding-under-python3

parents 23a81c0f 7127634a
#!/usr/bin/env python
from __future__ import print_function
import os, sys, re, string
import os, sys, re, string, io
# the list only for debugging. The real list, used in the real OpenCV build, is specified in CMakeLists.txt
opencv_hdr_list = [
......@@ -734,7 +734,7 @@ class CppHeaderParser(object):
"""
self.hname = hname
decls = []
f = open(hname, "rt")
f = io.open(hname, 'rt', encoding='utf-8')
linelist = list(f.readlines())
f.close()
......
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