aboutsummaryrefslogtreecommitdiffstats
path: root/python3
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-04-02 19:01:58 +0200
committerMattias Andrée <maandree@operamail.com>2013-04-02 19:01:58 +0200
commitc4ddce370e1aa477a339fdac2e1463384f6ec94f (patch)
tree0e9b8a9ed5df87c7cbc1ffce239fcb1081829313 /python3
parentjni error (diff)
downloadsha3sum-c4ddce370e1aa477a339fdac2e1463384f6ec94f.tar.gz
sha3sum-c4ddce370e1aa477a339fdac2e1463384f6ec94f.tar.bz2
sha3sum-c4ddce370e1aa477a339fdac2e1463384f6ec94f.tar.xz
whoops, read the filesize instead of the blocksize
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-xpython3/sha3sum.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python3/sha3sum.py b/python3/sha3sum.py
index 337e5c1..27b9fd1 100755
--- a/python3/sha3sum.py
+++ b/python3/sha3sum.py
@@ -698,7 +698,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
SHA3.initialise(r, c, o)
blksize = (o + 7) >> 3
try:
- blksize = os.stat(os.path.realpath(fn)).st_size
+ blksize = os.stat(os.path.realpath(fn)).st_blksize
except:
pass
while True: