diff options
author | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2011-06-07 00:50:32 +0000 |
---|---|---|
committer | Laurie Clark-Michalek <bluepeppers@archlinux.us> | 2011-06-07 00:50:32 +0000 |
commit | 2570aaa122cd564b3df24f65b03a6b02e093ce16 (patch) | |
tree | 318e4fba6cc20d13f661cd1a1a0c3ff47970b590 | |
parent | 725f8d602a2b7c7d3941a772daa1ea2b11c21c15 (diff) |
Made logbook an optional dependency
-rwxr-xr-x | archey3 | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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', |