[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 ?
  File "/usr/local/lib/python2.3/site-packages/twill/shell.py", line 340, in
  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
    cmd, args = parse.parse_command(line, global_dict, local_dict)
  File "/usr/local/lib/python2.3/site-packages/twill/parse.py", line 134, in
    res = full_command.parseString(line)
line 621, in parseString
    loc, tokens = self.parse( instring.expandtabs(), 0 )
line 563, in parse
    loc,tokens = self.parseImpl( instring, loc, doActions )
line 1750, in parseImpl
    raise maxException
ParseException: Expected "#" (at char 0), (line:1, col:1)
-> raise maxException

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the twill mailing list