2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-28 14:13:33 +00:00

Fixing format string indices

This change adds indices to all format strings, ensuring
interoperability with Python 2.6.
This commit is contained in:
Peter Hamilton
2015-02-23 09:52:15 -05:00
parent f6b420d2db
commit 0cd2d3dab6
18 changed files with 68 additions and 67 deletions

View File

@@ -115,7 +115,7 @@ class AttributeValueFactory(object):
else:
if not isinstance(name, str):
raise ValueError('Unrecognized attribute type: '
'{}'.format(name))
'{0}'.format(name))
elif name.startswith('x-'):
# Custom attribute indicated
value = self._create_custom_attribute(value)