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

Function softspace

IPython/core/interactiveshell.py:235–248  ·  view source on GitHub ↗

Copied from code.py, to remove the dependency

(file, newvalue)

Source from the content-addressed store, hash-verified

233
234@undoc
235def softspace(file, newvalue):
236 """Copied from code.py, to remove the dependency"""
237
238 oldvalue = 0
239 try:
240 oldvalue = file.softspace
241 except AttributeError:
242 pass
243 try:
244 file.softspace = newvalue
245 except (AttributeError, TypeError):
246 # "attribute-less object" or "read-only attributes"
247 pass
248 return oldvalue
249
250@undoc
251def no_op(*a, **kw):

Callers 1

run_ast_nodesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected