commit 37bb2333786a8fb451a8fb91f4ddcee50f4bb552
parent 8450f1169a2a0977a50095fea40acb23d19d4ed9
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Wed, 25 Mar 2015 01:18:29 +0100
Fix ridiculous bug in calcpref.py
Credit: Clément Pit--Claudel
<5511FC44.1010108@live.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/calcpref.py b/calcpref.py
@@ -17,7 +17,7 @@ for w in words:
if done % every == 0:
print("done %d" % done, file=sys.stderr)
done += 1
- for i in range(len(words)):
+ for i in range(len(w)):
w2 = w[i:]
if i == 0 or i == len(words):
continue