mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
python: better Python 3 support
This commit is contained in:
@@ -206,6 +206,8 @@ class table(object):
|
||||
cell.width = len(max(cell.text, key = lambda line: len(line)))
|
||||
|
||||
def reformatTextValue(self, value):
|
||||
if sys.version_info > (3,): # PY3 fix
|
||||
unicode = str
|
||||
if isinstance(value, str):
|
||||
vstr = value
|
||||
elif isinstance(value, unicode):
|
||||
|
||||
Reference in New Issue
Block a user