fixed a few instances of old-style string formatting

This commit is contained in:
Mark Pilgrim
2009-06-01 10:45:52 -07:00
parent c44e381d2a
commit 6822e16b62
4 changed files with 56 additions and 48 deletions
+2 -2
View File
@@ -64,8 +64,8 @@ class OrderedDict(dict, MutableMapping):
def __repr__(self):
if not self:
return '%s()' % (self.__class__.__name__,)
return '%s(%r)' % (self.__class__.__name__, list(self.items()))
return '{0}()'.format(self.__class__.__name__,)
return '{0}({1})'.format(self.__class__.__name__, repr(list(self.items())))
def copy(self):
return self.__class__(self)