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

Function softspace

IPython/core/interactiveshell.py:172–185  ·  view source on GitHub ↗

Copied from code.py, to remove the dependency

(file, newvalue)

Source from the content-addressed store, hash-verified

170
171@undoc
172def softspace(file, newvalue):
173 """Copied from code.py, to remove the dependency"""
174
175 oldvalue = 0
176 try:
177 oldvalue = file.softspace
178 except AttributeError:
179 pass
180 try:
181 file.softspace = newvalue
182 except (AttributeError, TypeError):
183 # "attribute-less object" or "read-only attributes"
184 pass
185 return oldvalue
186
187@undoc
188def no_op(*a, **kw):

Callers 1

run_ast_nodesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…