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:
@ -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:
|
||||
|
Reference in New Issue
Block a user