From cc37ca8db26165eb09d1f8400224d95ad07fb29b Mon Sep 17 00:00:00 2001 From: Surest Texas Date: Fri, 10 Mar 2017 09:51:14 -0500 Subject: [PATCH] The return buffer statement is never executed Since there is no "break" any where in the 'while True' loop, `return buffer` would never be executed. Having it in the code gives the false implication that it might and contributes to making the code less understandable. --- readchar/readchar.py | 1 - 1 file changed, 1 deletion(-) diff --git a/readchar/readchar.py b/readchar/readchar.py index f96ae29..59e351f 100644 --- a/readchar/readchar.py +++ b/readchar/readchar.py @@ -28,4 +28,3 @@ def readkey(getchar_fn=None): if c is None: return buffer buffer += c - return buffer