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

Method format

IPython/utils/PyColorize.py:199–205  ·  view source on GitHub ↗
(self, raw, out=None, scheme=Undefined)

Source from the content-addressed store, hash-verified

197
198
199 def format(self, raw, out=None, scheme=Undefined):
200 import warnings
201 if scheme is not Undefined:
202 warnings.warn('The `scheme` argument of IPython.utils.PyColorize:Parser.format is deprecated since IPython 6.0.'
203 'It will have no effect. Set the parser `style` directly.',
204 stacklevel=2)
205 return self.format2(raw, out)[0]
206
207 def format2(self, raw, out = None):
208 """ Parse and send the colored source.

Callers 15

test_unicode_colorizeFunction · 0.95
test_parse_sampleFunction · 0.95
test_parse_errorFunction · 0.95
setup.pyFile · 0.45
runMethod · 0.45
post_issue_commentFunction · 0.45
get_pull_requestFunction · 0.45
get_pull_request_filesFunction · 0.45
get_pulls_listFunction · 0.45
get_issues_listFunction · 0.45
get_milestonesFunction · 0.45
post_downloadFunction · 0.45

Calls 2

format2Method · 0.95
warnMethod · 0.80

Tested by 15

test_unicode_colorizeFunction · 0.76
test_parse_sampleFunction · 0.76
test_parse_errorFunction · 0.76
test_columnize_randomFunction · 0.36
test_columnize_mediumFunction · 0.36
test_columnize_longFunction · 0.36
eval_formatter_checkFunction · 0.36
test_dollar_formatterFunction · 0.36
test_plain_text_onlyMethod · 0.36
mock_kpsewhichFunction · 0.36