From f79c4396f894aedd14f41d5dbd1474096ef65d4a Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 14 Oct 2016 17:49:15 +0530 Subject: [PATCH] Add repr() implementation for Dependency() Easier to debug --- mesonbuild/dependencies.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mesonbuild/dependencies.py b/mesonbuild/dependencies.py index df6dcffe9..74738ae14 100644 --- a/mesonbuild/dependencies.py +++ b/mesonbuild/dependencies.py @@ -37,6 +37,10 @@ class Dependency(): self.is_found = False self.type_name = type_name + def __repr__(self): + s = '<{0} {1}: {2}>' + return s.format(self.__class__.__name__, self.name, self.is_found) + def get_compile_args(self): return []