commit 1522a00012f0468ada08cebfb77bb78ef323f7b5
parent 9bdac1aae06c4b33a4a04ca6fceb2fe4f97f9c2b
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 23 Sep 2017 09:40:20 +0200
qrscanner: return str
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/qrscanner.py b/lib/qrscanner.py
@@ -62,7 +62,7 @@ def scan_barcode(device='', timeout=-1, display=True, threaded=False):
return
symbol = libzbar.zbar_symbol_set_first_symbol(symbols)
data = libzbar.zbar_symbol_get_data(symbol)
- return data
+ return str(data)
def _find_system_cameras():
device_root = "/sys/class/video4linux"