From: Christian Dywan Date: Fri, 30 Oct 2009 20:14:05 +0000 (+0100) Subject: Use old Python decorator syntax to support old Python versions X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a712d0ea7a27176e90def2a290a8c526b3af8d65;p=midori Use old Python decorator syntax to support old Python versions --- diff --git a/wscript b/wscript index 7ccf4cc4..cdbbf869 100644 --- a/wscript +++ b/wscript @@ -56,12 +56,12 @@ def is_mingw (env): return False # Compile Win32 res files to (resource) object files -@extension ('.rc') def rc_file(self, node): rctask = self.create_task ('winrc') rctask.set_inputs (node) rctask.set_outputs (node.change_ext ('.rc.o')) self.compiled_tasks.append (rctask) +rc_file = extension ('.rc')(rc_file) Task.simple_task_type ('winrc', '${WINRC} -o${TGT} ${SRC}', color='BLUE', before='cc cxx', shell=False)