mirror of
https://github.com/samba-team/samba.git
synced 2025-12-20 16:23:51 +03:00
python/samba/gp_parse: PY3 file -> open
'file' no longer exists in PY3 replace with 'open' Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
@@ -295,7 +295,7 @@ def backup_directory_remote_to_local(conn, remotedir, localdir):
|
||||
os.mkdir(l_name)
|
||||
else:
|
||||
data = conn.loadfile(r_name)
|
||||
with file(l_name + SUFFIX, 'w') as f:
|
||||
with open(l_name + SUFFIX, 'w') as f:
|
||||
f.write(data)
|
||||
|
||||
parser = find_parser(e['name'])
|
||||
|
||||
Reference in New Issue
Block a user