mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-21 03:44:22 +01:00
syntax fix
This commit is contained in:
parent
4ea588f966
commit
5c736f63ae
1 changed files with 1 additions and 1 deletions
|
@ -1750,7 +1750,7 @@ class SpelloCorrecter: # Naïvely and quickly proted and adapted from optimised
|
||||||
self.dictionary[-1] = previous;
|
self.dictionary[-1] = previous;
|
||||||
|
|
||||||
for directory in directories:
|
for directory in directories:
|
||||||
for filename : os.listdir(directory):
|
for filename in os.listdir(directory):
|
||||||
if (not endswith(filename, ending)) or (len(filename) - len(ending) > 127):
|
if (not endswith(filename, ending)) or (len(filename) - len(ending) > 127):
|
||||||
continue
|
continue
|
||||||
proper = filename[:-len(ending)]
|
proper = filename[:-len(ending)]
|
||||||
|
|
Loading…
Reference in a new issue