equal
deleted
inserted
replaced
17 parameters = parameters[3:].lstrip() |
17 parameters = parameters[3:].lstrip() |
18 aspell += " --lang=" + lang |
18 aspell += " --lang=" + lang |
19 |
19 |
20 stdout, stdin = popen2.popen2(aspell) |
20 stdout, stdin = popen2.popen2(aspell) |
21 |
21 |
22 stdin.write(parameters) |
22 stdin.write(parameters.encode('iso-8859-15')) |
23 stdin.close() |
23 stdin.close() |
24 |
24 |
25 r = stdout.readline() |
25 r = stdout.readline() |
26 for r in stdout.readlines(): |
26 for r in stdout.readlines(): |
|
27 r = r.decode('iso-8859-15') |
27 if r == "*\n": |
28 if r == "*\n": |
28 reply += "* Word correctly spelled.\n" |
29 reply += "* Word correctly spelled.\n" |
29 elif r.startswith("& "): |
30 elif r.startswith("& "): |
30 if r.count(": "): |
31 if r.count(": "): |
31 reply += "* Let me suggest " + r[r.find(": ")+2:].strip() |
32 reply += "* Let me suggest " + r[r.find(": ")+2:].strip() |