Skip to content

Commit

Permalink
Added default conf to Consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
prashnts committed Oct 2, 2016
1 parent 1a044f3 commit f69fc00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hues/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
4 changes: 2 additions & 2 deletions hues/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit f69fc00

Please sign in to comment.