##// END OF EJS Templates
color: move '_colormode' to the core 'ui' class...
Pierre-Yves David -
r31083:c42feb5f default
parent child Browse files
Show More
@@ -297,7 +297,6 b' def _modesetup(ui, coloropt):'
297 return None
297 return None
298
298
299 class colorui(uimod.ui):
299 class colorui(uimod.ui):
300 _colormode = None
301 def write(self, *args, **opts):
300 def write(self, *args, **opts):
302 if self._colormode is None:
301 if self._colormode is None:
303 return super(colorui, self).write(*args, **opts)
302 return super(colorui, self).write(*args, **opts)
@@ -127,6 +127,8 b' def _catchterm(*args):'
127 raise error.SignalInterrupt
127 raise error.SignalInterrupt
128
128
129 class ui(object):
129 class ui(object):
130 # color mode: see mercurial/color.py for possible value
131 _colormode = None
130 def __init__(self, src=None):
132 def __init__(self, src=None):
131 """Create a fresh new ui object if no src given
133 """Create a fresh new ui object if no src given
132
134
General Comments 0
You need to be logged in to leave comments. Login now