[yum-commits] yum/misc.py
James Antill
james at osuosl.org
Tue Apr 15 16:16:30 UTC 2014
yum/misc.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9ab2903e1ff2baf0da4240a5b6be9b794e1dd334
Author: Vratislav Podzimek <vpodzime at redhat.com>
Date: Tue Apr 15 09:46:23 2014 -0400
Remove CHUNK argument from open, in checksum. BZ 1058297.
diff --git a/yum/misc.py b/yum/misc.py
index cdc08a0..6850ae2 100644
--- a/yum/misc.py
+++ b/yum/misc.py
@@ -351,7 +351,7 @@ def checksum(sumtype, file, CHUNK=2**16, datasize=None):
if type(file) not in types.StringTypes:
fo = file # assume it's a file-like-object
else:
- fo = open(file, 'r', CHUNK)
+ fo = open(file, 'r')
data = Checksums([sumtype])
while data.read(fo, CHUNK):
More information about the Yum-commits
mailing list