new-updates-sync: adjust for python3
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
3aac403d54
commit
9aa2bbec1b
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ def rsync(from_path, to_path, excludes=[], link_dest=None, delete=False):
|
|||
|
||||
results = {'num_bytes': 0,
|
||||
'num_deleted': 0}
|
||||
for line in stdout.encode().split('\n'):
|
||||
for line in stdout.decode('utf-8').split('\n'):
|
||||
if 'Literal data' in line:
|
||||
results['num_bytes'] = int(line.split()[2])
|
||||
elif 'deleting ' in line:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue