ui: differentiate empty configlist from None
authorAlecs King <alecsk@gmail.com>
Wed, 11 Aug 2010 20:28:39 +0800
changeset 11945 5094e6b2f640
parent 11944 df52ff0980fe
child 11946 851161f07068
ui: differentiate empty configlist from None
mercurial/ui.py
--- a/mercurial/ui.py	Fri Aug 13 13:11:41 2010 -0300
+++ b/mercurial/ui.py	Wed Aug 11 20:28:39 2010 +0800
@@ -218,7 +218,7 @@
         def _configlist(s):
             s = s.rstrip(' ,')
             if not s:
-                return None
+                return []
             parser, parts, offset = _parse_plain, [''], 0
             while parser:
                 parser, parts, offset = parser(parts, s, offset)