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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user