summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2011-06-23 22:09:00 -0600
committerEric Blake <eblake@redhat.com>2011-06-23 22:09:00 -0600
commit76287b51790fe0755752f115acf90648a3ea0fb9 (patch)
tree089b6663d410863f3b15a63d98b8af89cbf0fe53
parent37360f3f42c538507f367e03d0e7e2c228b89e94 (diff)
downloadlibvirt-python-v6-76287b51790fe0755752f115acf90648a3ea0fb9.tar.gz
libvirt-python-v6-76287b51790fe0755752f115acf90648a3ea0fb9.tar.xz
libvirt-python-v6-76287b51790fe0755752f115acf90648a3ea0fb9.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.
-rwxr-xr-xgenerator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/generator.py b/generator.py
index a3ebcf9..6ce6596 100755
--- a/generator.py
+++ b/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",