Skip to content

Commit

Permalink
Update clint.textui.core's docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
Lothiraldan committed Feb 12, 2012
1 parent ea9b218 commit 7c48045
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions clint/textui/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _indent(indent=0, quote='', indent_char=' '):
# Public

def puts(s='', newline=True, stream=STDOUT):
"""Prints given string to stdout via Writer interface."""
"""Prints given string to stdout."""
if newline:
s = tsplit(s, NEWLINES)
s = map(str, s)
Expand All @@ -68,7 +68,7 @@ def puts(s='', newline=True, stream=STDOUT):
stream(_str)

def puts_err(s='', newline=True, stream=STDERR):
"""Prints given string to stderr via Writer interface."""
"""Prints given string to stderr."""
puts(s, newline, stream)

def dedent():
Expand All @@ -78,10 +78,11 @@ def dedent():

@contextmanager
def _indent_context():
"""Indentation context manager."""
yield
dedent()

def indent(indent=4, quote=''):
"""Indentation context manager."""
"""Indentation manager, return an indentation context manager."""
_indent(indent, quote)
return _indent_context()

0 comments on commit 7c48045

Please sign in to comment.