diff options
Diffstat (limited to 'fixes/repr.cocci')
| -rw-r--r-- | fixes/repr.cocci | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/fixes/repr.cocci b/fixes/repr.cocci deleted file mode 100644 index dfa1ef4..0000000 --- a/fixes/repr.cocci +++ /dev/null @@ -1,27 +0,0 @@ -// tp_repr functions should return unicode in py3k -// FIXME: need to restrict to just tp_repr functions: -@@ -type T; -function FN_repr; -expression E; -@@ -PyObject * -FN_repr(T *self) -{ - ... -- return PyString_FromString(E); -+ return PyUnicode_FromString(E); -} - -@@ -type T; -function FN_repr; -expression E1, E2; -@@ -PyObject * -FN_repr(T *self) -{ - ... -- return PyString_FromFormat(E1, E2); -+ return PyUnicode_FromFormat(E1, E2); -} |
