From a712d0ea7a27176e90def2a290a8c526b3af8d65 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 30 Oct 2009 21:14:05 +0100 Subject: [PATCH] Use old Python decorator syntax to support old Python versions --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)