693 |
693 |
694 >>> u = ui(); s = b'foo' |
694 >>> u = ui(); s = b'foo' |
695 >>> u.setconfig(s, b'list1', b'this,is "a small" ,test') |
695 >>> u.setconfig(s, b'list1', b'this,is "a small" ,test') |
696 >>> u.configlist(s, b'list1') |
696 >>> u.configlist(s, b'list1') |
697 ['this', 'is', 'a small', 'test'] |
697 ['this', 'is', 'a small', 'test'] |
|
698 >>> u.setconfig(s, b'list2', b'this, is "a small" , test ') |
|
699 >>> u.configlist(s, b'list2') |
|
700 ['this', 'is', 'a small', 'test'] |
698 """ |
701 """ |
699 # default is not always a list |
702 # default is not always a list |
700 v = self.configwith(config.parselist, section, name, default, |
703 v = self.configwith(config.parselist, section, name, default, |
701 'list', untrusted) |
704 'list', untrusted) |
702 if isinstance(v, bytes): |
705 if isinstance(v, bytes): |