mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
ctdb/wscript: use python 3.6 compatible functions
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
a83e4a24ab
commit
8ba0a9a1ab
@ -340,7 +340,7 @@ def configure(conf):
|
||||
Logs.info(" %s: no" % (m))
|
||||
|
||||
def gen_ctdb_version(task):
|
||||
fp = file(task.outputs[0].bldpath(task.env), 'w')
|
||||
fp = open(task.outputs[0].bldpath(task.env), 'w')
|
||||
fp.write('/* This file is auto-generated from waf */\n')
|
||||
fp.write('#include "version.h"\n')
|
||||
fp.write('\n')
|
||||
@ -786,7 +786,8 @@ def build(bld):
|
||||
|
||||
def SUBDIR_MODE(path, trim_path=None):
|
||||
pd = {'trim_path': trim_path, 'file_list': []}
|
||||
os.path.walk(path, SUBDIR_MODE_callback, pd)
|
||||
for dirname, _subdirs, fnames in os.walk(path):
|
||||
SUBDIR_MODE_callback(pd, dirname, fnames)
|
||||
return pd['file_list']
|
||||
|
||||
event_script_subdirs = [
|
||||
|
Loading…
Reference in New Issue
Block a user