summaryrefslogtreecommitdiff
path: root/grc/core/utils/odict.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/core/utils/odict.py')
-rw-r--r--grc/core/utils/odict.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/core/utils/odict.py b/grc/core/utils/odict.py
index 9d69082600..85927e869f 100644
--- a/grc/core/utils/odict.py
+++ b/grc/core/utils/odict.py
@@ -59,7 +59,7 @@ class odict(DictMixin):
"""
index = (pos_key is None) and len(self._keys) or self._keys.index(pos_key)
if key in self._keys:
- raise KeyError('Cannot insert, key "{0}" already exists'.format(str(key)))
+ raise KeyError('Cannot insert, key "{}" already exists'.format(str(key)))
self._keys.insert(index+1, key)
self._data[key] = val
@@ -75,7 +75,7 @@ class odict(DictMixin):
"""
index = (pos_key is not None) and self._keys.index(pos_key) or 0
if key in self._keys:
- raise KeyError('Cannot insert, key "{0}" already exists'.format(str(key)))
+ raise KeyError('Cannot insert, key "{}" already exists'.format(str(key)))
self._keys.insert(index, key)
self._data[key] = val