vcs: call the Config repr properly, we show sections count not value count.

This commit is contained in:
Marcin Kuzminski 2016-09-05 17:09:40 +02:00
parent 15857bf841
commit ca71b1cced

View file

@ -1438,7 +1438,8 @@ class Config(object):
return clone
def __repr__(self):
return '<Config(%s values) at %s>' % (len(self._values), hex(id(self)))
return '<Config(%s sections) at %s>' % (
len(self._values), hex(id(self)))
def items(self, section):
return self._values.get(section, {}).iteritems()