From dbcea81c170b0bb101a23428e648034d1ab41258 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 16 Sep 2010 00:59:58 -0400 Subject: [PATCH] Inline docs. --- tablib/helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tablib/helpers.py b/tablib/helpers.py index f20700d..0a91e56 100644 --- a/tablib/helpers.py +++ b/tablib/helpers.py @@ -16,5 +16,6 @@ class Struct(object): def piped(): """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