Bug 72981 - games-mud/mcl-0.53.00 DynaComplete plugin fails to load - PATCH INSIDE!
Bug#: 72981 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: bjoern.michaelsen@gmail.com
Component: Ebuilds
URL: 
Summary: games-mud/mcl-0.53.00 DynaComplete plugin fails to load - PATCH INSIDE!
Keywords:  Inclusion
Status Whiteboard: 
Opened: 2004-11-30 17:59 0000
Description:   Opened: 2004-11-30 17:59 0000
mcl-0.53.00/samples/contrib/DynaComplete.py fails to load because of a borked
regexp. See patch.


Reproducible: Always
Steps to Reproduce:
1. copy sample plugins to ~/.mcl
2. set plugins=python in ~/.mcl/mclrc
3. start mcl
4. #load contrib/DynaComplete

Actual Results:  
Traceback (most recent call last):
  File "/home/bjoern/.mcl/contrib/DynaComplete.py", line 118, in ?
    dynac = DynaComplete( )
  File "/home/bjoern/.mcl/contrib/DynaComplete.py", line 26, in __init__
    self.wording = re.compile( '\s*(?P<word>[\w-#]+)' )
  File "/usr/lib/python2.3/sre.py", line 179, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.3/sre.py", line 230, in _compile
    raise error, v # invalid expression
sre_constants.error: bad character range


Expected Results:  
DynaComplete v0.1.1 loaded. Use <conrol space> or <tab> to complete
words you have already typed and <backspace> to erase.
Or use "complete <words>" to add permanent completion into list.

Python 2.3.4 (#1, Nov 21 2004, 05:43:51) 
[GCC 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

------- Comment #1 From Björn Michaelsen 2004-11-30 18:00:45 0000 -------
Created an attachment (id=45031) [details]
proposed patch

------- Comment #2 From Mr. Bones. 2004-12-02 01:28:37 0000 -------
Sounds good.  Added to CVS.  resync/remerge to get it.