Mercurial > cpython-lru_cache-weakref
diff Modules/_csv.c @ 43577:ace45b361e87
Patch# 1258 by Christian Heimes: kill basestring.
I like this because it makes the code shorter! :-)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 16 Oct 2007 18:12:55 +0000 |
| parents | 3f1fcd080ec4 |
| children | 8ed0280c2ab6 |
line wrap: on
line diff
--- a/Modules/_csv.c Tue Oct 16 06:31:30 2007 +0000 +++ b/Modules/_csv.c Tue Oct 16 18:12:55 2007 +0000 @@ -62,7 +62,7 @@ /* end 2.2 compatibility macros */ #define IS_BASESTRING(o) \ - PyObject_TypeCheck(o, &PyBaseString_Type) + PyUnicode_Check(o) static PyObject *error_obj; /* CSV exception */ static PyObject *dialects; /* Dialect registry */
