Skip to content

Commit afd46dc

Browse files
committed
Removed unused variable.
1 parent 5679c21 commit afd46dc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cmd2/pt_utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ def __init__(self, cmd_app: 'Cmd', custom_settings: utils.CustomCompletionSettin
4242
self.cmd_app = cmd_app
4343
self.custom_settings = custom_settings
4444

45-
# Define delimiters for completion to match cmd2/readline behavior
46-
delimiters = BASE_DELIMITERS
47-
if hasattr(self.cmd_app, 'statement_parser'):
48-
delimiters += "".join(self.cmd_app.statement_parser.terminators)
49-
50-
# Regex pattern for a word: one or more characters that are NOT delimiters
51-
self.word_pattern = re.compile(f"[^{re.escape(delimiters)}]+")
52-
5345
def get_completions(self, document: Document, _complete_event: object) -> Iterable[Completion]:
5446
"""Get completions for the current input."""
5547
# Find the beginning of the current word based on delimiters

0 commit comments

Comments
 (0)