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

Class Deprec

IPython/core/excolors.py:168–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 return ex_colors
167
168class Deprec(object):
169
170 def __init__(self, wrapped_obj):
171 self.wrapped=wrapped_obj
172
173 def __getattr__(self, name):
174 val = getattr(self.wrapped, name)
175 warnings.warn("Using ExceptionColors global is deprecated and will be removed in IPython 6.0",
176 DeprecationWarning, stacklevel=2)
177 # using getattr after warnings break ipydoctest in weird way for 3.5
178 return val
179
180# For backwards compatibility, keep around a single global object. Note that
181# this should NOT be used, the factory function should be used instead, since

Callers 1

excolors.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected