From addb754c686bc3d2e5f3a4e66db99c2f08667471 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 8 Jul 2013 22:51:16 +0200 Subject: [PATCH] registry.py: Use %r instead of %s in for formating __nonExistentEntry errors. --- src/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registry.py b/src/registry.py index 25dbc2fee..87fb1d3d2 100644 --- a/src/registry.py +++ b/src/registry.py @@ -204,7 +204,7 @@ class Group(object): raise ValueError, 'Groups have no value.' 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 def __makeChild(self, attr, s):