Skip to content

Commit 50d4ce1

Browse files
committed
Fix 'append'
#24
1 parent 68d644d commit 50d4ce1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scan/commands/commandsequence.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def append(self, *commands):
4242
if isinstance(command, Command):
4343
super(CommandSequence, self).append(command)
4444
else:
45-
# Assume iterable tuple, list, set, .. and append its content
46-
self.append(list(command))
45+
# Assume iterable tuple, list, set, .. and extend this list by its content
46+
self.extend(list(command))
4747

4848
def genSCN(self):
4949
""":return: Command in XML format suitable for scan server"""

0 commit comments

Comments
 (0)