Changeset 441

Show
Ignore:
Timestamp:
10/23/09 11:27:36 (2 years ago)
Author:
apdavison
Message:

Very minor change: the colour() function (for pretty console output) now works with unicode.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/__init__.py

    r440 r441  
    117117try: 
    118118    import ll.ansistyle 
    119     def colour(col,text): 
    120         return str(ll.ansistyle.Text(col,str(text))) 
     119    def colour(col, text): 
     120        return unicode(ll.ansistyle.Text(col, unicode(text))) 
    121121except ImportError: 
    122     def colour(col,text): 
     122    def colour(col, text): 
    123123            return text 
    124124