From 49fc0f6a4fa0d16d308a1c2e61596fbe905eb37c Mon Sep 17 00:00:00 2001 From: KikooDX Date: Wed, 6 Nov 2019 10:52:45 +0100 Subject: [PATCH] Redundant operation. --- locate2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/locate2.py b/locate2.py index bf0b17c..3088b60 100644 --- a/locate2.py +++ b/locate2.py @@ -92,9 +92,9 @@ class Pad(Screen): to_print += self._mat[dy][dx] to_print += "\n" to_print = to_print[:-1] - print(to_print[:-width-1], end="") + print(to_print[:-width], end="") if ask_for_input or fancy: - return input("\n" + (to_print[-width:-1] if fancy else "> ")) + return input(to_print[-width:-1] if fancy else "> ") else: - print("\n" + to_print[-width:], end=endl) + print(to_print[-width:], end=endl) return None