[Python-3000-checkins] r58794 - python/branches/py3k-pep3137/Modules/_cursesmodule.c

guido.van.rossum python-3000-checkins at python.org
Fri Nov 2 20:55:41 CET 2007


Author: guido.van.rossum
Date: Fri Nov  2 20:55:40 2007
New Revision: 58794

Modified:
   python/branches/py3k-pep3137/Modules/_cursesmodule.c
Log:
PyBytes -> PyString in PyCurses_GetWin().


Modified: python/branches/py3k-pep3137/Modules/_cursesmodule.c
==============================================================================
--- python/branches/py3k-pep3137/Modules/_cursesmodule.c	(original)
+++ python/branches/py3k-pep3137/Modules/_cursesmodule.c	Fri Nov  2 20:55:40 2007
@@ -1796,7 +1796,7 @@
     remove(fn);
     return NULL;
   }
-  if (!PyBytes_Check(data)) {
+  if (!PyString_Check(data)) {
     PyErr_Format(PyExc_TypeError,
                  "f.read() returned %.100s instead of bytes",
                  data->ob_type->tp_name);
@@ -1805,7 +1805,7 @@
     remove(fn);
     return NULL;
   }
-  fwrite(PyBytes_AS_STRING(data), 1, PyBytes_GET_SIZE(data), fp);
+  fwrite(PyString_AS_STRING(data), 1, PyString_GET_SIZE(data), fp);
   Py_DECREF(data);
   fseek(fp, 0, 0);
   win = getwin(fp);


More information about the Python-3000-checkins mailing list