summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorHilko Bengen <bengen@hilluzination.de>2012-09-20 19:36:03 +0200
committerRichard W.M. Jones <rjones@redhat.com>2012-09-20 21:12:38 +0100
commite482f2faf0a1fef41358a8083153b327203505e9 (patch)
treeb0ac56817250b238d0e0eb772c83efcebb7528cc /generator
parentb36b44af9e177fe5c9677d430abc7cba0633049c (diff)
downloadlibguestfs-e482f2faf0a1fef41358a8083153b327203505e9.tar.gz
libguestfs-e482f2faf0a1fef41358a8083153b327203505e9.tar.xz
libguestfs-e482f2faf0a1fef41358a8083153b327203505e9.zip
python: PyInt_* no longer exists in python3, replace with PyLong_*
Diffstat (limited to 'generator')
-rw-r--r--generator/python.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/python.ml b/generator/python.ml
index 482b189e..b4bc3cee 100644
--- a/generator/python.ml
+++ b/generator/python.ml
@@ -381,7 +381,7 @@ free_strings (char **argv)
pr " optargs_s.bitmask |= %s_%s_BITMASK;\n" c_optarg_prefix uc_n;
(match optarg with
| OBool _ | OInt _ ->
- pr " optargs_s.%s = PyInt_AsLong (py_%s);\n" n n;
+ pr " optargs_s.%s = PyLong_AsLong (py_%s);\n" n n;
pr " if (PyErr_Occurred ()) return NULL;\n"
| OInt64 _ ->
pr " optargs_s.%s = PyLong_AsLongLong (py_%s);\n" n n;