MCPcopy Index your code
hub / github.com/python/cpython / _complete_indentation

Method _complete_indentation

Lib/pdb.py:1226–1232  ·  view source on GitHub ↗
(self, text, line, begidx, endidx)

Source from the content-addressed store, hash-verified

1224 return [n for n in ns.keys() if n.startswith(text)]
1225
1226 def _complete_indentation(self, text, line, begidx, endidx):
1227 try:
1228 import readline
1229 except ImportError:
1230 return []
1231 # Fill in spaces to form a 4-space indent
1232 return [' ' * (4 - readline.get_begidx() % 4)]
1233
1234 def complete_multiline_names(self, text, line, begidx, endidx):
1235 # If text is space-only, the user entered <tab> before any text.

Callers 1

Calls 1

get_begidxMethod · 0.80

Tested by

no test coverage detected