vcs: call the Config repr properly, we show sections count not value count.
This commit is contained in:
parent
15857bf841
commit
ca71b1cced
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue