Show More
@@ -34,10 +34,7 b' for filename in sys.argv[1:]:' | |||||
34 |
|
34 | |||
35 | m = md5() |
|
35 | m = md5() | |
36 | try: |
|
36 | try: | |
37 | while True: |
|
37 | for data in iter(lambda: fp.read(8192), ''): | |
38 | data = fp.read(8192) |
|
|||
39 | if not data: |
|
|||
40 | break |
|
|||
41 | m.update(data) |
|
38 | m.update(data) | |
42 | except IOError as msg: |
|
39 | except IOError as msg: | |
43 | sys.stderr.write('%s: I/O error: %s\n' % (filename, msg)) |
|
40 | sys.stderr.write('%s: I/O error: %s\n' % (filename, msg)) |
General Comments 0
You need to be logged in to leave comments.
Login now