color: replace re.split with ui.configlist
authorMartin Geisler <mg@lazybytes.net>
Mon, 25 May 2009 22:54:16 +0200
changeset 8623 0c159aa7b329
parent 8622 0a4f6e1b78dc
child 8624 2b3dec0ef3ae
color: replace re.split with ui.configlist
hgext/color.py
--- 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