ctdb-build: Use open() instead of file() for python3
authorAmitay Isaacs <amitay@gmail.com>
Mon, 17 Dec 2018 23:54:50 +0000 (10:54 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 18 Dec 2018 02:38:04 +0000 (13:38 +1100)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
ctdb/wscript

index 44a9d08..30b09d6 100644 (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()