Skip to content

Commit aaaaf22

Browse files
committed
-
1 parent 40155d2 commit aaaaf22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source_py2/python_toolbox/nifty_collections/ordered_dict.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def move_to_end(self, key, last=True):
2626
link_next = link[1]
2727
link_prev[1] = link_next
2828
link_next[0] = link_prev
29+
root = self.__root
2930
if last:
3031
last = self.__root[0]
3132
link[0] = last
@@ -36,6 +37,7 @@ def move_to_end(self, key, last=True):
3637
link[0] = self.__root
3738
link[1] = first
3839
root[1] = first[0] = link
40+
3941

4042
def sort(self, key=None, reverse=False):
4143
'''

0 commit comments

Comments
 (0)