2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-31 15:43:45 +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

@@ -49,7 +49,7 @@ class AttributeFactory(object):
pass
else:
msg = utils.build_er_error(Attribute, 'name',
'{} or {}'.format('Enum', 'str'),
'{0} or {1}'.format('Enum', 'str'),
type(name))
raise TypeError(msg)