Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a83f270 commit ce0a6deCopy full SHA for ce0a6de
1 file changed
Python/import.c
@@ -857,8 +857,6 @@ imp_load_compiled(self, args)
857
if (fp == NULL)
858
return NULL;
859
m = load_compiled_module(name, pathname, fp);
860
- if (fob == NULL)
861
- fclose(fp);
862
return m;
863
}
864
@@ -877,8 +875,6 @@ imp_load_dynamic(self, args)
877
875
if (fob)
878
876
fp = get_file(pathname, fob, "r");
879
m = load_dynamic_module(name, pathname, fp);
880
881
882
883
884
@@ -898,8 +894,6 @@ imp_load_source(self, args)
898
894
899
895
900
896
m = load_source_module(name, pathname, fp);
901
902
903
897
904
905
0 commit comments