summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Bauer <felix.bauer@atos.net>2019-10-15 18:21:24 +0200
committerFelix Bauer <jack@ai4me.de>2019-10-29 12:37:07 +0100
commit93e0b98a917b5c9e7405feeff045432b5a8ce170 (patch)
tree7099af5858c6bd1a7f464e31421ee84496a47fe3
parentdb5478c085defab0b64ae0828b9c3a82bb658afe (diff)
Python3 Exception TypeError in scan_file.py
Must be string not bytes. Data from socket is now correctly decoded as UTF-8.
-rwxr-xr-xbin/scan_file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/scan_file.py b/bin/scan_file.py
index abb42bc..cfbb5fb 100755
--- a/bin/scan_file.py
+++ b/bin/scan_file.py
@@ -71,7 +71,7 @@ def main():
while True:
data = peekaboo.recv(1024)
if data:
- buf += data
+ buf += data.decode('utf-8')
else:
peekaboo.close()
break