diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-17 16:07:03 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-17 16:07:03 +0200 |
| commit | b34e27d4ebaf325df6d82fde17b28cf9a008dbfc (patch) | |
| tree | b46a775144473e2bf2fbea051e54096335f0e405 /python/generic.h | |
| parent | b63d93492cba1ffd11454ab37e751ef6f938ff96 (diff) | |
| download | python-apt-b34e27d4ebaf325df6d82fde17b28cf9a008dbfc.tar.gz | |
python: Use PyString_FromFormat instead of snprintf.
Diffstat (limited to 'python/generic.h')
| -rw-r--r-- | python/generic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/generic.h b/python/generic.h index 7f3a3809..4a55e9bf 100644 --- a/python/generic.h +++ b/python/generic.h @@ -53,6 +53,7 @@ typedef int Py_ssize_t; #define PyString_FromString PyUnicode_FromString #define PyString_FromStringAndSize PyUnicode_FromStringAndSize #define PyString_AsString PyUnicode_AsString +#define PyString_FromFormat PyUnicode_FromFormat #define PyInt_Check PyLong_Check #define PyInt_AsLong PyLong_AsLong // Force 0.7 compatibility to be off in Python 3 builds |
