mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-29 07:27:59 +01:00
Static analyzer checks on spellocorrector.krk
This commit is contained in:
parent
9a2f3b71bd
commit
7f661c285f
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue