From aed3b5b7baa379b991be8d15f5a3e39ba90967a4 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 14 Nov 2016 23:31:08 +1100 Subject: [PATCH] cc3200/tools/smoke.py: Change readall() to read(). --- cc3200/tools/smoke.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc3200/tools/smoke.py b/cc3200/tools/smoke.py index 20a8377877..3ade11cf87 100644 --- a/cc3200/tools/smoke.py +++ b/cc3200/tools/smoke.py @@ -51,7 +51,7 @@ n_w = f.write(test_bytes) print(n_w == len(test_bytes)) f.close() f = open('test.txt', 'r') -r = bytes(f.readall(), 'ascii') +r = bytes(f.read(), 'ascii') # check that we can write and read it correctly print(r == test_bytes) f.close()