summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurie Clark-Michalek <bluepeppers@archlinux.us>2011-06-07 00:50:32 +0000
committerLaurie Clark-Michalek <bluepeppers@archlinux.us>2011-06-07 00:50:32 +0000
commit2570aaa122cd564b3df24f65b03a6b02e093ce16 (patch)
tree318e4fba6cc20d13f661cd1a1a0c3ff47970b590
parent725f8d602a2b7c7d3941a772daa1ea2b11c21c15 (diff)
Made logbook an optional dependency
-rwxr-xr-xarchey311
1 files changed, 10 insertions, 1 deletions
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',