Changeset 303664d in osmose-backend


Ignore:
Timestamp:
Feb 25, 2014 10:13:58 PM (6 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
0878ba9
Parents:
ef61f5f
git-author:
Jocelyn Jaubert <jocelyn.jaubert@…> (20/02/2014 20:00:29)
git-committer:
Jocelyn Jaubert <jocelyn.jaubert@…> (25/02/2014 22:13:58)
Message:

Make sure that strings are unicode in OsmoseLog?.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/OsmoseLog.py

    rbd537d0 r303664d  
    3232        if self._incpt: 
    3333            self._out.write(u"\r".encode("utf-8")) 
    34             self._out.write(" "*len(self._lastcpt.encode("utf-8"))) 
     34            self._out.write(u" "*len(self._lastcpt.encode("utf-8"))) 
    3535            self._out.write(u"\r".encode("utf-8")) 
    3636            self._out.flush() 
    3737            self._incpt = False 
    3838        pre  = u"" 
    39         pre += time.strftime("%Y-%m-%d %H:%M:%S ").decode("utf8") 
    40         pre += "  "*level 
     39        pre += time.strftime("%Y-%m-%d %H:%M:%S ") 
     40        pre += u"  "*level 
    4141        suf  = u"" 
    4242        print >> self._out, pre.encode("utf8") + txt.encode("utf8") + suf.encode("utf8") 
Note: See TracChangeset for help on using the changeset viewer.