MCPcopy Index your code
hub / github.com/ipython/ipython / indent

Method indent

IPython/lib/pretty.py:178–184  ·  view source on GitHub ↗

with statement support for indenting/dedenting.

(self, indent)

Source from the content-addressed store, hash-verified

176
177 @contextmanager
178 def indent(self, indent):
179 """with statement support for indenting/dedenting."""
180 self.indentation += indent
181 try:
182 yield
183 finally:
184 self.indentation -= indent
185
186 @contextmanager
187 def group(self, indent=0, open='', close=''):

Callers 4

_exec_in_closureMethod · 0.80
squish_textFunction · 0.80
autogen_config.pyFile · 0.80

Calls

no outgoing calls

Tested by 1

squish_textFunction · 0.64