summaryrefslogtreecommitdiff
path: root/tablib/helpers.py
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2010-09-16 00:59:58 -0400
committerKenneth Reitz <me@kennethreitz.com>2010-09-16 00:59:58 -0400
commitdbcea81c170b0bb101a23428e648034d1ab41258 (patch)
treebe0401a85432d899c39be41824673d21dfb7092e /tablib/helpers.py
parent49dc4a249eef20f8f844da333d128e4519bf713e (diff)
downloadtablib-dbcea81c170b0bb101a23428e648034d1ab41258.tar.gz
Inline docs.
Diffstat (limited to 'tablib/helpers.py')
-rw-r--r--tablib/helpers.py1
1 files changed, 1 insertions, 0 deletions
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