From 8e93fa0bb51744cb3c33ce7308c204caa68e40f8 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 24 Jan 2017 14:10:20 +0200 Subject: pykms: add Videomode.__repr__ --- py/pykms/pykmsbase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp index 5247158..13c4dd1 100644 --- a/py/pykms/pykmsbase.cpp +++ b/py/pykms/pykmsbase.cpp @@ -144,6 +144,8 @@ void init_pykmsbase(py::module &m) .def_readwrite("flags", &Videomode::flags) .def_readwrite("type", &Videomode::type) + + .def("__repr__", [](const Videomode& vm) { return ""; }) ; py::class_(m, "AtomicReq") -- cgit v1.2.3