1 new changeset in py: http://bitbucket.org/hpk42/py/changeset/489711be9a2d/ changeset: r2010:489711be9a2d user: hpk42 date: 2011-03-07 13:16:52 summary: fix un-coloring on windows by resetting the color before the newline affected #: 2 files (129 bytes)
--- a/CHANGELOG Sun Mar 06 18:28:00 2011 +0100 +++ b/CHANGELOG Mon Mar 07 13:16:52 2011 +0100 @@ -6,6 +6,8 @@ - better error message for syntax errors from compiled code +- small fix to better deal with (un-)colored terminal output on windows + Changes between 1.4.0 and 1.4.1 ================================================== --- a/py/_io/terminalwriter.py Sun Mar 06 18:28:00 2011 +0100 +++ b/py/_io/terminalwriter.py Mon Mar 07 13:16:52 2011 +0100 @@ -211,7 +211,8 @@ SetConsoleTextAttribute(handle, oldcolors) def line(self, s="", **kw): - self.write(s+"\n", **kw) + self.write(s, **kw) # works better for resetting colors + self.write("\n") class WriteFile(object): def __init__(self, writemethod, encoding=None): Repository URL: https://bitbucket.org/hpk42/py/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ py-svn mailing list py-svn@codespeak.net http://codespeak.net/mailman/listinfo/py-svn