From 2570aaa122cd564b3df24f65b03a6b02e093ce16 Mon Sep 17 00:00:00 2001 From: Laurie Clark-Michalek Date: Tue, 7 Jun 2011 00:50:32 +0000 Subject: Made logbook an optional dependency --- archey3 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/archey3 b/archey3 index cdbfbce..9887379 100755 --- a/archey3 +++ b/archey3 @@ -19,7 +19,16 @@ from time import ctime, sleep from os import getenv import re import os.path -from logbook import Logger + +try: + from logbook import Logger +except ImportError: + class Logger(object): + def __init__(self, name, level=0): + self.name = name + self.level = level + debug = info = warn = warning = notice = error = exception = \ + critical = log = lambda *a, **kw: None UNAME_FLAG_MEANINGS = { 'a': 'System Infomation', -- cgit v1.2.3-54-g00ecf