refactor: Replace all __unicode__ method with __str__.

Close #6627.
This commit is contained in:
rht
2017-10-27 09:06:40 +02:00
committed by showell
parent e51d98cd96
commit dcc831f767
9 changed files with 54 additions and 54 deletions

View File

@@ -46,9 +46,9 @@ class CountStat(object):
else: # frequency == CountStat.DAY
self.interval = timedelta(days=1)
def __unicode__(self):
def __str__(self):
# type: () -> Text
return u"<CountStat: %s>" % (self.property,)
return "<CountStat: %s>" % (self.property,)
class LoggingCountStat(CountStat):
def __init__(self, property, output_table, frequency):