|
|
b10e8e |
From 273377f924599a4d7358770664467a22a81249ef Mon Sep 17 00:00:00 2001
|
|
|
b10e8e |
From: Chris Lumens <clumens@redhat.com>
|
|
|
b10e8e |
Date: Wed, 14 Jan 2015 11:40:42 -0500
|
|
|
b10e8e |
Subject: [PATCH 5/7] PyInt_FromLong doesn't exist in python3, so always use
|
|
|
b10e8e |
PyLong_FromLong.
|
|
|
b10e8e |
|
|
|
b10e8e |
---
|
|
|
b10e8e |
src/_pedmodule.c | 8 ++++----
|
|
|
b10e8e |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
b10e8e |
|
|
|
b10e8e |
diff --git a/src/_pedmodule.c b/src/_pedmodule.c
|
|
|
b10e8e |
index 7f02193..a048d91 100644
|
|
|
b10e8e |
--- a/src/_pedmodule.c
|
|
|
b10e8e |
+++ b/src/_pedmodule.c
|
|
|
b10e8e |
@@ -403,8 +403,8 @@ static PedExceptionOption partedExnHandler(PedException *e) {
|
|
|
b10e8e |
PyObject *args, *retval;
|
|
|
b10e8e |
|
|
|
b10e8e |
args = PyTuple_New(3);
|
|
|
b10e8e |
- PyTuple_SetItem(args, 0, PyInt_FromLong(e->type));
|
|
|
b10e8e |
- PyTuple_SetItem(args, 1, PyInt_FromLong(e->options));
|
|
|
b10e8e |
+ PyTuple_SetItem(args, 0, PyLong_FromLong(e->type));
|
|
|
b10e8e |
+ PyTuple_SetItem(args, 1, PyLong_FromLong(e->options));
|
|
|
b10e8e |
PyTuple_SetItem(args, 2, PyUnicode_FromString(e->message));
|
|
|
b10e8e |
|
|
|
b10e8e |
retval = PyObject_CallObject(exn_handler, NULL);
|
|
|
b10e8e |
@@ -441,8 +441,8 @@ static PedExceptionOption partedExnHandler(PedException *e) {
|
|
|
b10e8e |
PyObject *args, *retval;
|
|
|
b10e8e |
|
|
|
b10e8e |
args = PyTuple_New(3);
|
|
|
b10e8e |
- PyTuple_SetItem(args, 0, PyInt_FromLong(e->type));
|
|
|
b10e8e |
- PyTuple_SetItem(args, 1, PyInt_FromLong(e->options));
|
|
|
b10e8e |
+ PyTuple_SetItem(args, 0, PyLong_FromLong(e->type));
|
|
|
b10e8e |
+ PyTuple_SetItem(args, 1, PyLong_FromLong(e->options));
|
|
|
b10e8e |
PyTuple_SetItem(args, 2, PyUnicode_FromString(e->message));
|
|
|
b10e8e |
|
|
|
b10e8e |
retval = PyObject_CallObject(exn_handler, NULL);
|
|
|
b10e8e |
--
|
|
|
b10e8e |
2.4.0
|
|
|
b10e8e |
|