MCPcopy Index your code
hub / github.com/bpython/bpython / append_closing_character

Method append_closing_character

bpython/curtsiesfrontend/repl.py:1019–1024  ·  view source on GitHub ↗

Appends closing character/bracket to the completion

(self, completion)

Source from the content-addressed store, hash-verified

1017 return completion_end in CHARACTER_PAIR_MAP
1018
1019 def append_closing_character(self, completion):
1020 """Appends closing character/bracket to the completion"""
1021 completion_end = completion[-1]
1022 if completion_end in CHARACTER_PAIR_MAP:
1023 completion = f"{completion}{CHARACTER_PAIR_MAP[completion_end]}"
1024 return completion
1025
1026 def on_control_d(self):
1027 if self.current_line == "":

Callers 1

on_tabMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected