Commit 74233b34 authored by Guido van Rossum's avatar Guido van Rossum

fix buffer size

parent 705d517e
......@@ -51,7 +51,7 @@ def sig(st): # Return signature (i.e., type, size, mtime) from raw stat data
return type, size, mtime
def do_cmp(f1, f2): # Compare two files, really
bufsize = 8096 # Could be tuned
bufsize = 8*1024 # Could be tuned
fp1 = open(f1, 'r')
fp2 = open(f2, 'r')
while 1:
......
......@@ -58,7 +58,7 @@ def sig(st):
#
def do_cmp(f1, f2):
#print ' cmp', f1, f2 # XXX remove when debugged
bufsize = 8096 # Could be tuned
bufsize = 8*1024 # Could be tuned
fp1 = open(f1, 'r')
fp2 = open(f2, 'r')
while 1:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment