mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
python: PyInt_* no longer exists in python3, replace with PyLong_*
This commit is contained in:
committed by
Richard W.M. Jones
parent
b36b44af9e
commit
e482f2faf0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user