Skip to content

Commit

Permalink
Merge pull request #75 from erikb85/master
Browse files Browse the repository at this point in the history
Show real class name
  • Loading branch information
EliAndrewC committed Nov 22, 2014
2 parents d00c202 + d7ddf28 commit f99f93b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -1363,9 +1363,9 @@ def _getval(key):
return self[key]
except MissingInterpolationOption:
return dict.__getitem__(self, key)
return ('ConfigObj({%s})' %
return ('%s({%s})' % (self.__class__.__name__,
', '.join([('%s: %s' % (repr(key), repr(_getval(key))))
for key in (self.scalars + self.sections)]))
for key in (self.scalars + self.sections)])))


def _handle_bom(self, infile):
Expand Down

0 comments on commit f99f93b

Please sign in to comment.