Fix pylint error

************* Module freezer.engine.rsync.pyrsync
freezer/engine/rsync/pyrsync.py:135:53: E0601: Using variable 'tailsize' before assignment (used-before-assignment)

Change-Id: I86763ae9715fe9ddef483f136c40a3bb8df8a459
This commit is contained in:
Cai Hui 2022-05-08 17:44:38 +08:00
parent 3eb84784c6
commit 6d2df5eee9
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ def rsyncdelta(datastream, remotesignatures, blocksize=4096):
match = True
matchblock = -1
last_byte = []
tailsize = 0
while True:
if match and datastream is not None:
# Whenever there is a match or the loop is running for the first