diff MoinMoin/items/__init__.py @ 1389:522d2cea9ec8

Fix string formatting in RegistryItem.__repr__
author DasIch <dasdasich@gmail.com>
date Sun, 03 Jun 2012 18:36:13 +0200
parents 359d51f0fa90
children 7a2ee6335ea9
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Sun Jun 03 18:32:29 2012 +0200
+++ b/MoinMoin/items/__init__.py	Sun Jun 03 18:36:13 2012 +0200
@@ -111,7 +111,7 @@
             return NotImplemented
 
         def __repr__(self):
-            return '<{0}: {1}, prio {2} [{3!r}]>' % (self.__class__.__name__,
+            return '<{0}: {1}, prio {2} [{3!r}]>'.format(self.__class__.__name__,
                     self.content_type,
                     self.priority,
                     self.factory)