diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-10-21 13:15:44 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-10-21 13:15:44 +0300 |
commit | 1866fc41c8fdf5a82705cee7f1043d5fb634c3be (patch) | |
tree | cb5d7f68633c1083d8afe016cb5ed2d5e6230b32 /python/rpmmodule.c | |
parent | 33c569ce6fd827ba039e36ffe0a77b0643d0ac70 (diff) | |
download | librpm-tizen-1866fc41c8fdf5a82705cee7f1043d5fb634c3be.tar.gz librpm-tizen-1866fc41c8fdf5a82705cee7f1043d5fb634c3be.tar.bz2 librpm-tizen-1866fc41c8fdf5a82705cee7f1043d5fb634c3be.zip |
Replace PyString usage with PyBytes everywhere
- In Python 2.6 PyBytes is just an alias for PyString, Python 3.0
removed PyString entirely
- Add compatibility defines for Python < 2.6
- Based on David Malcolm's Python 3.x efforts
Diffstat (limited to 'python/rpmmodule.c')
-rw-r--r-- | python/rpmmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmmodule.c b/python/rpmmodule.c index 2d903fc9b..fb9fa1d4a 100644 --- a/python/rpmmodule.c +++ b/python/rpmmodule.c @@ -191,7 +191,7 @@ static void addRpmTags(PyObject *module) PyModule_AddIntConstant(module, tagname, tagval); pyval = PyInt_FromLong(tagval); - pyname = PyString_FromString(shortname); + pyname = PyBytes_FromString(shortname); PyDict_SetItem(dict, pyval, pyname); Py_DECREF(pyval); Py_DECREF(pyname); |