Revision 6152a559 image_creator/util.py
b/image_creator/util.py | ||
---|---|---|
100 | 100 |
yield # suppress the StopIteration exception |
101 | 101 |
return progress_generator |
102 | 102 |
|
103 |
def md5(filename, size, progress = None): |
|
104 | 103 |
|
105 |
BLOCKSIZE = 2^22 # 4MB |
|
104 |
def md5(filename, size, progress=None): |
|
105 |
|
|
106 |
BLOCKSIZE = 2 ^ 22 # 4MB |
|
106 | 107 |
|
107 | 108 |
md5 = hashlib.md5() |
108 | 109 |
with open(filename, "r") as src: |
Also available in: Unified diff