summaryrefslogtreecommitdiffstats
path: root/fixes/repr.cocci
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2010-03-05 19:06:29 -0500
committerDavid Malcolm <dmalcolm@redhat.com>2010-03-05 19:06:29 -0500
commite4c495a8b6d9727de99b35bddf70f2c942e7f8b9 (patch)
tree0b41afa08d135b80f55195eb9cefb4a8bd643fa7 /fixes/repr.cocci
parent234a10d5bc133f9963db58fd4c08715fe43c2b94 (diff)
download2to3c-master.tar.gz
2to3c-master.tar.xz
2to3c-master.zip
Rename "fixes" -> "lib2to3c"; start writing a setup.pyHEADmaster
Diffstat (limited to 'fixes/repr.cocci')
-rw-r--r--fixes/repr.cocci27
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);
-}