From 7f661c285fd4300559ab267bf7e9eb13357e6522 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Tue, 29 Mar 2022 09:21:37 +0900 Subject: [PATCH] Static analyzer checks on spellocorrector.krk --- ponysay/spellocorrecter.krk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ponysay/spellocorrecter.krk b/ponysay/spellocorrecter.krk index 513e522b..d29e1817 100644 --- a/ponysay/spellocorrecter.krk +++ b/ponysay/spellocorrecter.krk @@ -30,7 +30,7 @@ lines and the ‘FREE’ is and upper case and directly followed by the colon. ''' from ponysay.common import printerr, printinfo, gettermsize, endswith - +import os class SpelloCorrecter(): # Naïvely and quickly ported and adapted from optimised Java, may not be the nicest, or even fast, Python code ''' @@ -89,7 +89,7 @@ class SpelloCorrecter(): # Naïvely and quickly ported and adapted from optimise for filename in files: if (not endswith(filename, ending)) or (len(filename) - len(ending) > 127): continue - proper = filename[:-len(ending)] + let proper = filename[:-len(ending)] if self.dictionaryEnd == 0: self.dictionaryEnd = len(self.dictionary)