Fix returning unicode with __repr__ and __str__. Fixes #356

This commit is contained in:
blitzmann
2015-09-24 14:15:54 -04:00
parent 8647fa245f
commit 30a8437515
2 changed files with 12 additions and 12 deletions

View File

@@ -16,7 +16,7 @@ class Timer():
return (time.time() - self.__last)*1000
def checkpoint(self, name=''):
text = 'Timer - {timer} - {checkpoint} - {last:.2f}ms ({elapsed:.2f}ms elapsed)'.format(
text = u'Timer - {timer} - {checkpoint} - {last:.2f}ms ({elapsed:.2f}ms elapsed)'.format(
timer=self.name,
checkpoint=name,
last=self.last,