Inline docs.

This commit is contained in:
Kenneth Reitz
2010-09-16 00:59:58 -04:00
parent 49dc4a249e
commit dbcea81c17
+1
View File
@@ -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