Message56524
| Author |
stephbul |
| Recipients |
stephbul |
| Date |
2007年10月18日.12:51:55 |
| SpamBayes Score |
0.0353672 |
| Marked as misclassified |
No |
| Message-id |
<1192711916.5.0.235687394478.issue1294@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
According to me, the Ctrl-C is not managed correctly in cmd.py. Ctrl-C
generates a a KeyboardInterrupt exceptions, and only EOFError is
managed. I propose to manage KeyboardInterrupt on line 130:
print 'are you sure you want to exit? y/n'
answer =''
while (answer != 'y') & (answer != 'n'):
answer = raw_input()
if answer == 'y':
exit(0)
Here is attached my new cmd.py
Hope ti will help. |
| Files |
| File name |
Uploaded |
|
cmd.py
|
stephbul,
2007年10月18日.12:51:56
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年10月18日 12:51:56 | stephbul | set | spambayes_score: 0.0353672 -> 0.0353672 recipients:
+ stephbul |
| 2007年10月18日 12:51:56 | stephbul | set | spambayes_score: 0.0353672 -> 0.0353672 messageid: <1192711916.5.0.235687394478.issue1294@psf.upfronthosting.co.za> |
| 2007年10月18日 12:51:56 | stephbul | link | issue1294 messages |
| 2007年10月18日 12:51:56 | stephbul | create |
|