diff options
author | Thomas Nagy <tnagy1024@gmail.com> | 2010-04-08 07:45:46 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-08 07:46:39 +1000 |
commit | 7f3116a63d7d91f4c0d26adf8fcdef0a5a957971 (patch) | |
tree | 46e95f69b7637c38dbbc20455c3dc99408a93df7 /source4/dynconfig/wscript | |
parent | 64957ce0686761acd2a2a7ec1787898d2d8238b6 (diff) | |
download | samba-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/wscript')
-rw-r--r-- | source4/dynconfig/wscript | 4 |
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) |