We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fd5e80 commit 09dd3a9Copy full SHA for 09dd3a9
pyocd/utility/sequencer.py
@@ -85,6 +85,12 @@ def clear(self):
85
"""! @brief Remove all tasks from the sequence."""
86
self._calls = OrderedDict()
87
88
+ def copy(self):
89
+ """! @brief Duplicate the sequence."""
90
+ new_seq = CallSequence()
91
+ new_seq._calls = self._calls.copy()
92
+ return new_seq
93
+
94
def remove_task(self, name):
95
"""! @brief Remove a task with the given name.
96
@exception KeyError Raised if no task with the specified name exists.
0 commit comments