From: Kefu Chai Date: Sat, 5 Jun 2021 03:40:18 +0000 (+0800) Subject: pybind/ceph_daemon: fix the format string in Termsize.__repr__() X-Git-Tag: v17.1.0~1729^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fb50de457ca3a0e4f777a55a80703487eeea09d9;p=ceph.git pybind/ceph_daemon: fix the format string in Termsize.__repr__() we intended to print the class name usign "%s". Signed-off-by: Kefu Chai --- diff --git a/src/pybind/ceph_daemon.py b/src/pybind/ceph_daemon.py index c7f73552be28..6c87ecc20783 100644 --- a/src/pybind/ceph_daemon.py +++ b/src/pybind/ceph_daemon.py @@ -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):