Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72981 - games-mud/mcl-0.53.00 DynaComplete plugin fails to load - PATCH INSIDE!
Summary: games-mud/mcl-0.53.00 DynaComplete plugin fails to load - PATCH INSIDE!
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-11-30 17:59 UTC by Björn Michaelsen
Modified: 2004-12-02 01:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed patch (mcl.patch,422 bytes, patch)
2004-11-30 18:00 UTC, Björn Michaelsen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Michaelsen 2004-11-30 17:59:00 UTC
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 Björn Michaelsen 2004-11-30 18:00:45 UTC
Created attachment 45031 [details, diff]
proposed patch
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-12-02 01:28:37 UTC
Sounds good.  Added to CVS.  resync/remerge to get it.