]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: avoid python 2.4 build failure
authorEric Blake <eblake@redhat.com>
Fri, 24 Jun 2011 04:09:00 +0000 (22:09 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 24 Jun 2011 04:09:00 +0000 (22:09 -0600)
On RHEL 5, I got:

/usr/bin/python ./generator.py /usr/bin/python
  File "./generator.py", line 427
    "virStreamFree", # Needed in custom virStream __del__, but free shouldn't
                   ^
SyntaxError: invalid syntax

* python/generator.py (function_skip_python_impl): Use same syntax
as other skip lists.

python/generator.py

index a3ebcf9ba9475d25e5e71074d64e94929cf94af2..6ce6596cd11e7319c51c9ad2fda280eecdea325f 100755 (executable)
@@ -423,10 +423,10 @@ skip_function = (
 )
 
 # Generate C code, but skip python impl
-function_skip_python_impl = {
+function_skip_python_impl = (
     "virStreamFree", # Needed in custom virStream __del__, but free shouldn't
                      # be exposed in bindings
-}
+)
 
 function_skip_index_one = (
     "virDomainRevertToSnapshot",