1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +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

@ -337,7 +337,7 @@ class GptTmplInfParser(GPParser):
self.sections[s].write_section(s, f)
def write_xml(self, filename):
with file(filename, 'w') as f:
with open(filename, 'wb') as f:
root = Element('GptTmplInfFile')
for sec_inf in self.sections: