Skip to content

Commit

Permalink
Fix DeprecationWarning (maxsplit should be a kwarg)
Browse files Browse the repository at this point in the history
  • Loading branch information
youtux committed Sep 16, 2024
1 parent 3562134 commit 2f48300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/gherkin/gherkin_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def split_table_cells(self, row):
@property
def tags(self):
column = self.indent + 1
uncommented_line = re.split(r"\s#", self._trimmed_line_text.strip(), 2)[0]
uncommented_line = re.split(r"\s#", self._trimmed_line_text.strip(), maxsplit=2)[0]
items = uncommented_line.strip().split('@')
tags = []
for item in items[1:]:
Expand Down

0 comments on commit 2f48300

Please sign in to comment.