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)