[twill] twill-sh exception on non-alphanum characgters
Michael
mike23w at yahoo.com
Fri Sep 15 11:39:44 PDT 2006
Entering an exclamation mark(!) in twill-sh throws an exception.
Other punctuation characters cause similar exception.
Using twill 0.8.5.
Thanks! Mike
p.s. It's still a great tool despite this one small bug.
May be useful to print the twill version in the welcome banner? so if someone
copies and pastes twill-sh output when filing a bug they don't have to go
searching for the twill package version.
$ twill-sh
-= Welcome to twill! =-
current page: *empty page*
>> !
Traceback (most recent call last):
File "/usr/local/bin/twill-sh", line 20, in ?
twill.shell.main()
File "/usr/local/lib/python2.3/site-packages/twill/shell.py", line 340, in
main
shell.cmdloop(welcome_msg)
File "/usr/local/lib/python2.3/cmd.py", line 133, in cmdloop
stop = self.onecmd(line)
File "/usr/local/lib/python2.3/cmd.py", line 201, in onecmd
return self.default(line)
File "/usr/local/lib/python2.3/site-packages/twill/shell.py", line 177, in
default
cmd, args = parse.parse_command(line, global_dict, local_dict)
File "/usr/local/lib/python2.3/site-packages/twill/parse.py", line 134, in
parse_command
res = full_command.parseString(line)
File
"/usr/local/lib/python2.3/site-packages/twill/other_packages/pyparsing.py",
line 621, in parseString
loc, tokens = self.parse( instring.expandtabs(), 0 )
File
"/usr/local/lib/python2.3/site-packages/twill/other_packages/pyparsing.py",
line 563, in parse
loc,tokens = self.parseImpl( instring, loc, doActions )
File
"/usr/local/lib/python2.3/site-packages/twill/other_packages/pyparsing.py",
line 1750, in parseImpl
raise maxException
ParseException: Expected "#" (at char 0), (line:1, col:1)
>
/usr/local/lib/python2.3/site-packages/twill/other_packages/pyparsing.py(1750)parseImpl()
-> raise maxException
(Pdb)
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the twill
mailing list