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

Function u_format

IPython/utils/py3compat.py:175–179  ·  view source on GitHub ↗

{u}'abc'" --> "'abc'" (Python 3) Accepts a string or a function, so it can be used as a decorator.

(s)

Source from the content-addressed store, hash-verified

173# Abstract u'abc' syntax:
174@_modify_str_or_docstring
175def u_format(s):
176 """"{u}'abc'" --> "'abc'" (Python 3)
177
178 Accepts a string or a function, so it can be used as a decorator."""
179 return s.format(u='')
180
181
182PY2 = not PY3

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected