1
0
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:
Noel Power
2018-09-05 12:46:44 +01:00
committed by Noel Power
parent 0934fc14ef
commit 388bddf4a6
6 changed files with 8 additions and 8 deletions

View File

@@ -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'])