diff hgext/color.py @ 21227:75aaae8ad660 stable

color: don't fail on error messages when no curses (issue4237) The error only occured when Python didn't have curses - such as on Windows and when Python was built without curses support. No curses can also be emulated by (re)moving .../lib/python2.7/curses/ from the Python installation. It is left as an exercise to figure out exactly what changed in Mercurial that triggered this error.
author Mads Kiilerich <madski@unity3d.com>
date Sat, 03 May 2014 03:29:30 +0200
parents 2606e7f227f6
children 2b8697e20978
line wrap: on
line diff
--- a/hgext/color.py	Sat May 03 10:33:54 2014 +0200
+++ b/hgext/color.py	Sat May 03 03:29:30 2014 +0200
@@ -230,7 +230,7 @@
                         'cyan': (False, curses.COLOR_CYAN),
                         'white': (False, curses.COLOR_WHITE)}
 except ImportError:
-    _terminfo_params = False
+    _terminfo_params = {}
 
 _styles = {'grep.match': 'red bold',
            'grep.linenumber': 'green',