[Xfce4-commits] <midori:master> Use brackets in wscript to be python 3 compatible
Christian Dywan
noreply at xfce.org
Fri Oct 22 21:46:02 CEST 2010
Updating branch refs/heads/master
to 031929e7731bc43a21055f4b1a71488f4c8482c7 (commit)
from 03f69c0b517efc14edb2194ebb66feb37e611212 (commit)
commit 031929e7731bc43a21055f4b1a71488f4c8482c7
Author: Christian Dywan <christian at twotoasts.de>
Date: Fri Oct 22 21:41:18 2010 +0200
Use brackets in wscript to be python 3 compatible
It won't actually build, but it's a step towards that.
wscript | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/wscript b/wscript
index 5e344c9..3722acf 100644
--- a/wscript
+++ b/wscript
@@ -10,7 +10,7 @@ try:
except:
WAFVERSION='1.0.0'
if WAFVERSION[:3] != '1.5':
- print 'Incompatible Waf, use 1.5'
+ print ('Incompatible Waf, use 1.5')
sys.exit (1)
import Build
@@ -322,7 +322,7 @@ def configure (conf):
conf.env.append_value ('VALAFLAGS', '--enable-checking'.split ())
elif debug_level == 'none':
conf.env.append_value ('VALAFLAGS', '--disable-assert')
- print '''
+ print ('''
Localization: %(nls)s (intltool)
Icon optimizations: %(icons)s (rsvg-convert)
Notifications: %(libnotify)s (libnotify)
@@ -330,7 +330,7 @@ def configure (conf):
IDN support: %(idn)s (libidn or libsoup 2.27.90)
User documentation: %(user_docs)s (docutils)
API documentation: %(api_docs)s (gtk-doc)
- ''' % locals ()
+ ''' % locals ())
if unique == 'yes' and conf.check_cfg (modversion='unique-1.0') == '1.0.4':
Utils.pprint ('RED', 'unique 1.0.4 found, this version is erroneous.')
Utils.pprint ('RED', 'Please use an older or newer version.')
@@ -568,7 +568,7 @@ def shutdown ():
size_old = 0
subprocess.call (['intltool-update', '-p', '-g', APPNAME])
size_new = os.stat (APPNAME + '.pot').st_size
- if size_new <> size_old:
+ if size_new != size_old:
Utils.pprint ('YELLOW', "Updated po template.")
try:
command = 'intltool-update -r -g %s' % APPNAME
@@ -613,7 +613,7 @@ def shutdown ():
command += ' wine cmd /k "PATH=%PATH%;' + Build.bld.env['PREFIX'] + os.sep + 'bin' + ' && ' + APPNAME + '.exe"'
else:
command += ' ' + relfolder + os.sep + APPNAME + os.sep + APPNAME
- print command
+ print (command)
Utils.exec_command (command)
- except Exception, msg:
+ except Exception as msg:
Utils.pprint ('RED', "Failed to run application: " + str (msg))
More information about the Xfce4-commits
mailing list