aboutsummaryrefslogtreecommitdiff
path: root/input_fail.py
diff options
context:
space:
mode:
authorJoseph Richey <joerichey@google.com>2018-02-11 21:43:56 -0800
committerGitHub <noreply@github.com>2018-02-11 21:43:56 -0800
commit8b6cbfcca9d1f3fb5b05a91b4ac0bca66f75f19e (patch)
tree5f6fdc40c7518bc23a63fdac9a92b516dd0c6d36 /input_fail.py
parentaebae1aae2fc61185a8bbc96313d8462727ad202 (diff)
parentb330463662825a7d7b22efabb2b7a40640d2b18e (diff)
Merge pull request #85 from google/depfix
Complete the new Build System
Diffstat (limited to 'input_fail.py')
-rwxr-xr-xinput_fail.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/input_fail.py b/input_fail.py
deleted file mode 100755
index 7bf33c3..0000000
--- a/input_fail.py
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env python
-
-# Exit with 1 if any input is provided. Print the input to stdout, unless an
-# argument is specified. In that case, print the argument instead.
-
-import sys
-
-input_string = sys.stdin.read()
-if input_string != "":
- if len(sys.argv) >= 2:
- print(sys.argv[1])
- else:
- sys.stdout.write(input_string)
- sys.exit(1)