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

Method with_mustclose

Lib/idlelib/idle_test/test_hyperparser.py:126–129  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

124 return parser.get_surrounding_brackets(mustclose=False)
125
126 def with_mustclose(parser):
127 # a utility function to get surrounding bracket
128 # with mustclose=True
129 return parser.get_surrounding_brackets(mustclose=True)
130
131 p = get('3.2')
132 self.assertIsNone(with_mustclose(p))

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected