MCPcopy Create free account
hub / github.com/ipython/ipython / indent

Method indent

IPython/lib/pretty.py:160–166  ·  view source on GitHub ↗

with statement support for indenting/dedenting.

(self, indent)

Source from the content-addressed store, hash-verified

158
159 @contextmanager
160 def indent(self, indent):
161 """with statement support for indenting/dedenting."""
162 self.indentation += indent
163 try:
164 yield
165 finally:
166 self.indentation -= indent
167
168 @contextmanager
169 def group(self, indent=0, open='', close=''):

Callers 1

autogen_config.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected