diff --git a/demo/Main.py b/demo/Main.py index e0b440b0..b7c4b36b 100644 --- a/demo/Main.py +++ b/demo/Main.py @@ -968,7 +968,8 @@ def SearchDemo(name, keyword): fullText = fid.read() fid.close() - fullText = fullText.decode("iso-8859-1") + if six.PY2: + fullText = fullText.decode("iso-8859-1") if fullText.find(keyword) >= 0: return True