diff options
author | Eric Blake <eblake@redhat.com> | 2011-06-23 22:09:00 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-06-23 22:09:00 -0600 |
commit | 178bab1c53ed7a8f8d51e60accad47ef5683251e (patch) | |
tree | 22e0bf5cfe2fe07a92e982e2d139d94b5cee3774 /python/generator.py | |
parent | build: avoid compiler failure (diff) | |
download | libvirt-178bab1c53ed7a8f8d51e60accad47ef5683251e.tar.gz libvirt-178bab1c53ed7a8f8d51e60accad47ef5683251e.tar.bz2 libvirt-178bab1c53ed7a8f8d51e60accad47ef5683251e.zip |
build: avoid python 2.4 build failure
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.
Diffstat (limited to 'python/generator.py')
-rwxr-xr-x | python/generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/generator.py b/python/generator.py index a3ebcf9ba..6ce6596cd 100755 --- a/python/generator.py +++ b/python/generator.py @@ -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", |