diff --git a/clint/pipes.py b/clint/pipes.py index 7be935c..40c4f57 100644 --- a/clint/pipes.py +++ b/clint/pipes.py @@ -2,8 +2,11 @@ import sys -def piped(): +def piped_in(): """Returns piped input via stdin, else False.""" with sys.stdin as stdin: # TTY is only way to detect if stdin contains data - return stdin.read() if not stdin.isatty() else None \ No newline at end of file + if not stdin.isatty(): + return stdin.read() + else: + return None \ No newline at end of file