Show More
@@ -42,7 +42,6 b' somewhere in your configuration files or ipython command line.' | |||
|
42 | 42 | #***************************************************************************** |
|
43 | 43 | |
|
44 | 44 | import os |
|
45 | import operator | |
|
46 | 45 | import subprocess |
|
47 | 46 | import sys |
|
48 | 47 | |
@@ -148,7 +147,7 b' class CommandChainDispatcher:' | |||
|
148 | 147 | def add(self, func, priority=0): |
|
149 | 148 | """ Add a func to the cmd chain with given priority """ |
|
150 | 149 | self.chain.append((priority, func)) |
|
151 |
self.chain.sort(key= |
|
|
150 | self.chain.sort(key=lambda x: x[0]) | |
|
152 | 151 | |
|
153 | 152 | def __iter__(self): |
|
154 | 153 | """ Return all objects in chain. |
General Comments 0
You need to be logged in to leave comments.
Login now