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

Function make_color_table

IPython/utils/coloransi.py:48–55  ·  view source on GitHub ↗

Build a set of color attributes in a class. Helper function for building the :class:`TermColors` and :class`InputTermColors`.

(in_class)

Source from the content-addressed store, hash-verified

46 )
47
48def make_color_table(in_class):
49 """Build a set of color attributes in a class.
50
51 Helper function for building the :class:`TermColors` and
52 :class`InputTermColors`.
53 """
54 for name,value in color_templates:
55 setattr(in_class,name,in_class._base % value)
56
57class TermColors:
58 """Color escape sequences.

Callers 1

coloransi.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected