never close the file in imp.load_...

This commit is contained in:
Guido van Rossum 1995-07-26 18:13:27 +00:00
parent a83f270a4b
commit ce0a6ded4d
1 changed files with 0 additions and 6 deletions

View File

@ -857,8 +857,6 @@ imp_load_compiled(self, args)
if (fp == NULL)
return NULL;
m = load_compiled_module(name, pathname, fp);
if (fob == NULL)
fclose(fp);
return m;
}
@ -877,8 +875,6 @@ imp_load_dynamic(self, args)
if (fob)
fp = get_file(pathname, fob, "r");
m = load_dynamic_module(name, pathname, fp);
if (fob == NULL)
fclose(fp);
return m;
}
@ -898,8 +894,6 @@ imp_load_source(self, args)
if (fp == NULL)
return NULL;
m = load_source_module(name, pathname, fp);
if (fob == NULL)
fclose(fp);
return m;
}