summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2018-07-31 18:04:30 +0100
committerAndrew Bartlett <abartlet@samba.org>2018-09-16 06:16:19 +0200
commit693834f7313471b62371a9517c05438b0c8f3e5c (patch)
treec110b41e3f77ba2608b66e976f0528cbd8be50d1 /lib/replace
parent3cc284b2af15dbf7fee87ce56403ec53ef754b61 (diff)
downloadsamba-693834f7313471b62371a9517c05438b0c8f3e5c.tar.gz
PY3: fix iteritems usage, not supported in python3
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 3d47c375044..8e2873424be 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -787,8 +787,8 @@ def build(bld):
REPLACE_HOSTCC_SOURCE = ''
- for filename, functions in REPLACEMENT_FUNCTIONS.iteritems():
- for function in functions:
+ for filename in REPLACEMENT_FUNCTIONS.keys():
+ for function in REPLACEMENT_FUNCTIONS[filename]:
if not bld.CONFIG_SET('HAVE_%s' % function.upper()):
REPLACE_HOSTCC_SOURCE += ' %s' % filename
break