From: Christian Dywan Date: Mon, 5 Jan 2009 21:08:52 +0000 (+0100) Subject: Rewrite try: except: finally: so it is python 2.4 friendly X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25e07232acd7f2e70b3202f15e3f3370c3303f1f;p=midori Rewrite try: except: finally: so it is python 2.4 friendly --- diff --git a/wscript b/wscript index 73756c0a..8acddcc2 100644 --- a/wscript +++ b/wscript @@ -287,17 +287,18 @@ def build (bld): pre = open (desktop + '.in') after = open (folder + '/' + desktop, 'w') try: - for line in pre: - if line != '': - if line[0] == '_': - after.write (line[1:]) - else: - after.write (line) - after.close () - Utils.pprint ('BLUE', desktop + '.in -> ' + desktop) - install_files ('DATADIR', 'applications', folder + '/' + desktop) - except: - Utils.pprint ('BLUE', 'File ' + desktop + ' not generated') + try: + for line in pre: + if line != '': + if line[0] == '_': + after.write (line[1:]) + else: + after.write (line) + after.close () + Utils.pprint ('BLUE', desktop + '.in -> ' + desktop) + install_files ('DATADIR', 'applications', folder + '/' + desktop) + except: + Utils.pprint ('BLUE', 'File ' + desktop + ' not generated') finally: pre.close ()