diff options
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index a83ec46..5dff38e 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -62,7 +62,7 @@ sysgetfile(name, def) { FILE *fp = NULL; object *v = sysget(name); - if (v != NULL) + if (v != NULL && is_fileobject(v)) fp = getfilefile(v); if (fp == NULL) fp = def; |