registry.py: Use %r instead of %s in for formating __nonExistentEntry errors.

This commit is contained in:
Valentin Lorentz 2013-07-08 22:51:16 +02:00
parent 73d585c0eb
commit addb754c68

View File

@ -204,7 +204,7 @@ class Group(object):
raise ValueError, 'Groups have no value.' raise ValueError, 'Groups have no value.'
def __nonExistentEntry(self, attr): def __nonExistentEntry(self, attr):
s = '%s is not a valid entry in %s' % (attr, self._name) s = '%r is not a valid entry in %r' % (attr, self._name)
raise NonExistentRegistryEntry, s raise NonExistentRegistryEntry, s
def __makeChild(self, attr, s): def __makeChild(self, attr, s):