diff options
Diffstat (limited to 'framework/status.py')
-rw-r--r-- | framework/status.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/framework/status.py b/framework/status.py index c01adaf3d..c69c50ae0 100644 --- a/framework/status.py +++ b/framework/status.py @@ -165,10 +165,14 @@ class Status(object): return self.__fraction def __repr__(self): - return self.name + return 'Status("{}", {}, {})'.format( + self.name, self.value, self.fraction) def __bytes__(self): - return six.binary_type(self.name) + if six.PY2: + return str(self.name) + elif six.PY3: + return bytes(self.name, 'utf-8') def __str__(self): return self.name |