Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
youtux committed Sep 16, 2024
1 parent c777773 commit 3562134
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions python/gherkin/token_matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@
from .dialect import Dialect
from .errors import NoSuchLanguageException

# Source: https://stackoverflow.com/a/8348914
try:
import textwrap
textwrap.indent
except AttributeError: # undefined function (wasn't added until Python 3.3)
def indent(text, amount, ch=' '):
padding = amount * ch
return ''.join(padding+line for line in text.splitlines(True))
else:
def indent(text, amount, ch=' '):
return textwrap.indent(text, amount * ch)

class TokenMatcher:
LANGUAGE_RE = re.compile(r"^\s*#\s*language\s*:\s*([a-zA-Z\-_]+)\s*$")
Expand Down

0 comments on commit 3562134

Please sign in to comment.