dosyayı kontrol etmek için rastgele boyutta bir satır okumak

yerine, header boyu kadar data oku.
This commit is contained in:
Gürer Özen
2007-07-20 06:04:15 +00:00
parent f725a729bd
commit 730dca040f
+1 -1
View File
@@ -311,7 +311,7 @@ def copy_file(src,dest):
shutil.copyfile(src, dest)
def is_ar_file(file_path):
return open(file_path).readline().strip() == '!<arch>'
return open(file_path).read(8) == '!<arch>\n'
def clean_ar_timestamps(ar_file):
"""Zero all timestamps in the ar files."""