python3 compatibility and fix pylint

This commit is contained in:
Andreas Tsaridas 2016-12-13 17:29:35 +01:00 committed by rallytime
parent e0df047000
commit 5e8bf571d8

View File

@ -688,7 +688,7 @@ def push(path, keep_symlinks=False, upload_path=None, remove_source=False):
load_path_split_drive = os.path.splitdrive(load_path_normal)[1]
# Finally, split the remaining path into a list for delivery to the master
load_path_list = filter(None, load_path_split_drive.split(os.sep))
load_path_list = [_f for _f in load_path_split_drive.split(os.sep) if _f]
load = {'cmd': '_file_recv',
'id': __opts__['id'],