Python 2.6 requires positioning by number of fragments in format.
This commit will restore Python 2.6 compatability.
This commit is contained in:
		| @@ -241,7 +241,7 @@ class StrictDict(object): | |||||||
|             class SpecificStrictDict(cls): |             class SpecificStrictDict(cls): | ||||||
|                 __slots__ = allowed_keys_tuple |                 __slots__ = allowed_keys_tuple | ||||||
|                 def __repr__(self): |                 def __repr__(self): | ||||||
|                     return "{%s}" % ', '.join('"{!s}": {!r}'.format(k,v) for (k,v) in self.iteritems()) |                     return "{%s}" % ', '.join('"{0!s}": {0!r}'.format(k,v) for (k,v) in self.iteritems()) | ||||||
|             cls._classes[allowed_keys] = SpecificStrictDict |             cls._classes[allowed_keys] = SpecificStrictDict | ||||||
|         return cls._classes[allowed_keys] |         return cls._classes[allowed_keys] | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user