Skip to content

Commit

Permalink
Fix PGroup.concant for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Qirky committed Aug 9, 2019
1 parent 4e8227f commit 6d3c76e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FoxDot/lib/Patterns/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,9 @@ def concat(self, data):
new.data = self.data + data.data
# Creates a pattern
elif isinstance(data, Pattern):
new = PGroup(*self.data, data)
args = list(self.data)
args.append(data)
new = PGroup(*args)
elif isinstance(data, (list, str)):
new.data = list(self.data)
new.data.extend(map(convert_nested_data, data))
Expand Down

0 comments on commit 6d3c76e

Please sign in to comment.