From 464849e575c9103bbbd1b84431572adc656d7c63 Mon Sep 17 00:00:00 2001 From: Dmitry Medvinsky Date: Wed, 23 May 2012 13:52:20 +0400 Subject: [PATCH] Add textui streams to __all__ So that I could write from clint import textui as ui ui.puts(ui.colored.red('fatal error'), stream=ui.STDERR) --- AUTHORS | 1 + clint/textui/core.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index b25d7e1..8a1b741 100644 --- a/AUTHORS +++ b/AUTHORS @@ -23,3 +23,4 @@ Patches and Suggestions - Gianluca Brindisi - Don Spaulding - Justin Barber +- Dmitry Medvinsky diff --git a/clint/textui/core.py b/clint/textui/core.py index 6ddacc3..c435391 100644 --- a/clint/textui/core.py +++ b/clint/textui/core.py @@ -21,7 +21,7 @@ from ..utils import tsplit __all__ = ('puts', 'puts_err', 'indent', 'dedent', 'columns', 'max_width', - 'min_width') + 'min_width', 'STDOUT', 'STDERR') STDOUT = sys.stdout.write