mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-10 13:57:08 +01:00
Only decode the file content on Py2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user