mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
ctdb-build: Use open() instead of file() for python3
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
1e061ff1e3
commit
9912709eca
@ -1177,7 +1177,7 @@ def distonly(ctx):
|
||||
|
||||
version = get_version()
|
||||
|
||||
distfile = file('.distversion', 'w')
|
||||
distfile = open('.distversion', 'w')
|
||||
for field in version.vcs_fields:
|
||||
distfile.write('%s=%s\n' % (field, str(version.vcs_fields[field])))
|
||||
distfile.close()
|
||||
|
Loading…
Reference in New Issue
Block a user