disguised Unix interface). Refer to the library manual and\n\
corresponding Unix manual entries for more information on calls.");
+#ifndef Py_USING_UNICODE
+/* This is used in signatures of functions. */
+#define Py_UNICODE void
+#endif
+
#if defined(PYOS_OS2)
#define INCL_DOS
#define INCL_DOSERRORS
Py_DECREF(f->f_name);
Py_DECREF(f->f_mode);
+#ifdef Py_USING_UNICODE
if (wname)
f->f_name = PyUnicode_FromObject(wname);
else
+#endif
f->f_name = PyString_FromString(name);
f->f_mode = PyString_FromString(mode);
file_repr(PyFileObject *f)
{
if (PyUnicode_Check(f->f_name)) {
+#ifdef Py_USING_UNICODE
PyObject *ret = NULL;
PyObject *name;
name = PyUnicode_AsUnicodeEscapeString(f->f_name);
f);
Py_XDECREF(name);
return ret;
+#endif
} else {
return PyString_FromFormat("<%s file '%s', mode '%s' at %p>",
f->f_fp == NULL ? "closed" : "open",