Mercurial > hg-stable
changeset 8623:0c159aa7b329
color: replace re.split with ui.configlist
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Mon, 25 May 2009 22:54:16 +0200 |
parents | 0a4f6e1b78dc |
children | 2b3dec0ef3ae |
files | hgext/color.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/color.py Mon May 25 22:44:53 2009 +0200 +++ b/hgext/color.py Mon May 25 22:54:16 2009 +0200 @@ -62,7 +62,7 @@ diff.trailingwhitespace = bold red_background ''' -import os, re, sys +import os, sys from mercurial import cmdutil, commands, extensions from mercurial.i18n import _ @@ -265,6 +265,6 @@ ]) for status in effectsmap: - effects = ui.config('color', cmd + '.' + status) + effects = ui.configlist('color', cmd + '.' + status) if effects: - effectsmap[status] = re.split('\W+', effects) + effectsmap[status] = effects