1
0
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:
Amitay Isaacs 2018-12-18 10:54:50 +11:00 committed by Amitay Isaacs
parent 1e061ff1e3
commit 9912709eca

View File

@ -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()