Skip to content

Commit adc4685

Browse files
committed
Update pyarchivefile.py
1 parent ac00f9b commit adc4685

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

pyarchivefile.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4209,7 +4209,6 @@ def ReadFileHeaderDataWithContent(fp, listonly=False, uncompress=True, skipcheck
42094209
if(not hasattr(fp, "read")):
42104210
return False
42114211
delimiter = formatspecs['format_delimiter']
4212-
fheaderstart = fp.tell()
42134212
if(formatspecs['new_style']):
42144213
HeaderOut = ReadFileHeaderDataBySize(fp, delimiter)
42154214
else:
@@ -4286,8 +4285,6 @@ def ReadFileHeaderDataWithContent(fp, listonly=False, uncompress=True, skipcheck
42864285
fname + " at offset " + str(fheaderstart))
42874286
VerbosePrintOut("'" + fcs + "' != " + "'" + newfcs + "'")
42884287
return False
4289-
fhend = fp.tell() - 1
4290-
fcontentstart = fp.tell()
42914288
fcontents = MkTempFile()
42924289
if(fsize > 0 and not listonly):
42934290
if(fcompression == "none" or fcompression == "" or fcompression == "auto"):
@@ -4319,7 +4316,6 @@ def ReadFileHeaderDataWithContent(fp, listonly=False, uncompress=True, skipcheck
43194316
shutil.copyfileobj(cfcontents, fcontents, length=__filebuff_size__)
43204317
cfcontents.close()
43214318
fcontents.seek(0, 0)
4322-
fcontentend = fp.tell()
43234319
if(re.findall("^\\+([0-9]+)", fseeknextfile)):
43244320
fseeknextasnum = int(fseeknextfile.replace("+", ""))
43254321
if(abs(fseeknextasnum) == 0):

0 commit comments

Comments
 (0)