Skip to content

Commit 220266a

Browse files
committed
fix: device.get_text()
1 parent 553a100 commit 220266a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

core/utils/device/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def get_text(self):
7373
self.get_screen(path=actual_image_path, log_level=logging.DEBUG)
7474
text = ImageUtils.get_text(image_path=actual_image_path)
7575
if Settings.PYTHON_VERSION < 3:
76-
return text.encode('utf-8').strip()
76+
return text.decode('utf-8').strip()
7777
else:
7878
return text.encode('utf-8').strip().decode('utf-8')
7979

88.2 KB
Loading

0 commit comments

Comments
 (0)