On Windows, tempnam() is spelled with a leading underscore.

This commit is contained in:
Fred Drake 2001-07-17 20:37:36 +00:00
parent 832181e5dc
commit 78b71c2ad3

View file

@ -4211,7 +4211,11 @@ posix_tempnam(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "|zz:tempnam", &dir, &pfx))
return NULL;
#ifdef MS_WIN32
name = _tempnam(dir, pfx);
#else
name = tempnam(dir, pfx);
#endif
if (name == NULL)
return PyErr_NoMemory();
result = PyString_FromString(name);