]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/ceph_daemon: fix the format string in Termsize.__repr__()
authorKefu Chai <kchai@redhat.com>
Sat, 5 Jun 2021 03:40:18 +0000 (11:40 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 5 Jun 2021 03:40:26 +0000 (11:40 +0800)
we intended to print the class name usign "%s".

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/ceph_daemon.py

index c7f73552be28399ea7d98a5d974357491ececc0a..6c87ecc207837548c63f2e926379c98aa8f95128 100644 (file)
@@ -117,8 +117,8 @@ class Termsize(object):
                                           self.rows, self.cols, self.changed)
 
     def __repr__(self) -> str:
-        return 'Termsize(%d,%d,%s)' % (self.__class__,
-                                       self.rows, self.cols, self.changed)
+        return '%s(%d,%d,%s)' % (self.__class__,
+                                 self.rows, self.cols, self.changed)
 
 
 class DaemonWatcher(object):