From a79b06e138c2c5b75e30fb587c38c2aa9b16e702 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 19 Mar 2011 11:43:02 -0400 Subject: [PATCH] piped -> piped_in --- clint/pipes.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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