summaryrefslogtreecommitdiff
path: root/source4/dynconfig
diff options
context:
space:
mode:
authorThomas Nagy <tnagy1024@gmail.com>2010-04-08 07:45:46 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-08 07:46:39 +1000
commit7f3116a63d7d91f4c0d26adf8fcdef0a5a957971 (patch)
tree46e95f69b7637c38dbbc20455c3dc99408a93df7 /source4/dynconfig
parent64957ce0686761acd2a2a7ec1787898d2d8238b6 (diff)
downloadsamba-7f3116a63d7d91f4c0d26adf8fcdef0a5a957971.tar.gz
samba-7f3116a63d7d91f4c0d26adf8fcdef0a5a957971.tar.bz2
samba-7f3116a63d7d91f4c0d26adf8fcdef0a5a957971.zip
build: allow the waf build to work with python 3.0 and 3.1
Python 3.x is a bit fussier about print statements and indentation. Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/dynconfig')
-rw-r--r--source4/dynconfig/wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dynconfig/wscript b/source4/dynconfig/wscript
index 835fc64ad0..7a9f419add 100644
--- a/source4/dynconfig/wscript
+++ b/source4/dynconfig/wscript
@@ -62,7 +62,7 @@ def get_varname(v):
if v.startswith('with-'):
v = v[5:]
v = v.upper()
- v = string.replace(v, '-', '_')
+ v = v.replace('-', '_')
return v
@@ -101,7 +101,7 @@ def configure(conf):
if (not Options.options.ENABLE_FHS and
(conf.env.PREFIX == '/usr' or conf.env.PREFIX == '/usr/local')):
- print "ERROR: Don't install directly under /usr or /usr/local without using the FHS option (--enable-fhs)"
+ print("ERROR: Don't install directly under /usr or /usr/local without using the FHS option (--enable-fhs)")
sys.exit(1)