From f69fc00d2a072c7683ff955d8c35560b0b8d534a Mon Sep 17 00:00:00 2001 From: Prashant Sinha Date: Sun, 2 Oct 2016 22:22:17 +0530 Subject: [PATCH] Added default conf to Consoles --- hues/__init__.py | 2 +- hues/console.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hues/__init__.py b/hues/__init__.py index 66b92d3..4c1a5b0 100644 --- a/hues/__init__.py +++ b/hues/__init__.py @@ -2,7 +2,7 @@ from .huestr import HueString as hue from .console import Config, SimpleConsole, PowerlineConsole -__version__ = (0, 2, 0) +__version__ = (0, 2, 1) conf = Config() diff --git a/hues/console.py b/hues/console.py index 94dd50f..0d70b4f 100644 --- a/hues/console.py +++ b/hues/console.py @@ -82,9 +82,9 @@ def resolve_config(self): class SimpleConsole(object): - def __init__(self, conf, stdout=sys.stdout): + def __init__(self, conf=None, stdout=sys.stdout): self.stdout = stdout - self.conf = conf + self.conf = conf if conf else Config() def _raw_log(self, *args): writeout = u''.join([x.colorized for x in args])