summaryrefslogtreecommitdiff
path: root/Include/sysmodule.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-06-12 23:30:11 +0000
committerGuido van Rossum <guido@python.org>2007-06-12 23:30:11 +0000
commitda5b8f2d28f2f7ce47be5d88244eaefc66f7de3e (patch)
treef3b0ab1f90be8ba18b1cefdb660cebd95c0f70d9 /Include/sysmodule.h
parent2d5c219fe09eacf81c139e5af9114fbbdd093d85 (diff)
downloadcpython-git-da5b8f2d28f2f7ce47be5d88244eaefc66f7de3e.tar.gz
Rip out the file object's implementation.
Fixed test_import.py while I was at it. However, there's still a problem in import.c -- get_file() can leak a FILE struct (not a file descriptor though). I'm not sure how to fix this; closing the FILE* closes the file descriptor, and that's the wrong thing to do when there's still a Python file object keeping the file descriptor open. I also would rather not mess with dup(), as it won't port to Windows.
Diffstat (limited to 'Include/sysmodule.h')
-rw-r--r--Include/sysmodule.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/Include/sysmodule.h b/Include/sysmodule.h
index 1c9b187f31..3ff01bdbb8 100644
--- a/Include/sysmodule.h
+++ b/Include/sysmodule.h
@@ -9,7 +9,6 @@ extern "C" {
PyAPI_FUNC(PyObject *) PySys_GetObject(char *);
PyAPI_FUNC(int) PySys_SetObject(char *, PyObject *);
-PyAPI_FUNC(FILE *) PySys_GetFile(char *, FILE *);
PyAPI_FUNC(void) PySys_SetArgv(int, char **);
PyAPI_FUNC(void) PySys_SetPath(char *);