summaryrefslogtreecommitdiff
path: root/portato/odict.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/odict.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/portato/odict.py b/portato/odict.py
index 2c8391d..1c12ce8 100644
--- a/portato/odict.py
+++ b/portato/odict.py
@@ -731,7 +731,7 @@ class OrderedDict(dict):
if new_key in self:
raise ValueError("New key already exists: %r" % new_key)
# rename sequence entry
- value = self[old_key]
+ value = self[old_key]
old_idx = self._sequence.index(old_key)
self._sequence[old_idx] = new_key
# rename internal dict entry