def printResults(self): logger.head("Search Results | " + self.dir + " | '" + self.key + "'") for key, value in self.results.iteritems(): if not value: continue logger.item(key) logger.subitem(repr(value))
def printResult(self): if len(self.results) == 0: logger.item("No results found") else: for item in self.results: logger.item(item)