aboutsummaryrefslogtreecommitdiffstats
path: root/python3
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-17 14:42:00 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-17 14:42:00 +0200
commitee09d35e3cc6be60f4fa424191ef6ef79d566ce3 (patch)
tree1de721adffeafcafd4ff1f7e0958c40cc56ae456 /python3
parentfix for exception catching with stdin as filename by None (diff)
downloadsha3sum-ee09d35e3cc6be60f4fa424191ef6ef79d566ce3.tar.gz
sha3sum-ee09d35e3cc6be60f4fa424191ef6ef79d566ce3.tar.bz2
sha3sum-ee09d35e3cc6be60f4fa424191ef6ef79d566ce3.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'python3')
-rwxr-xr-xpython3/sha3sum.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/python3/sha3sum.py b/python3/sha3sum.py
index 4063443..eba5ecd 100755
--- a/python3/sha3sum.py
+++ b/python3/sha3sum.py
@@ -883,13 +883,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
printerr(cmd + ': sorry, I will only do at least one squeeze iteration!\n')
sys.exit(3)
stdin = None
+ fail = False
for filename in files:
- if (filename is None) and (stdin is not None):
- print(stdin)
- continue
rc = ''
fn = '/dev/stdin' if filename is None else filename
- fail = False
with open(fn, 'rb') as file:
try:
if (filename is not None) or (stdin is None):