]> spindle.queued.net Git - midori/commitdiff
Use old Python decorator syntax to support old Python versions
authorChristian Dywan <christian@twotoasts.de>
Fri, 30 Oct 2009 20:14:05 +0000 (21:14 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 30 Oct 2009 20:14:05 +0000 (21:14 +0100)
wscript

diff --git a/wscript b/wscript
index 7ccf4cc424009f666612c1bf9a15d9c3f24f9d21..cdbbf8696c4b5845503650d0584177c90657d1de 100644 (file)
--- 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)