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 4b3c1da commit f0ada4aCopy full SHA for f0ada4a
1 file changed
Python/import.c
@@ -287,12 +287,14 @@ doneimport()
287
/* Explicitly erase all modules; this is the safest way
288
to get rid of at least *some* circular dependencies */
289
for (i = getdictsize(modules); --i >= 0; ) {
290
- char *k;
291
- k = getdictkey(modules, i);
+ object *k;
+ k = getdict2key(modules, i);
292
if (k != NULL) {
293
object *m;
294
- m = dictlookup(modules, k);
295
- if (m != NULL && is_moduleobject(m)) {
+ m = dict2lookup(modules, k);
+ if (m == NULL)
296
+ err_clear();
297
+ else if (is_moduleobject(m)) {
298
object *d;
299
d = getmoduledict(m);
300
if (d != NULL && is_dictobject(d)) {
0 commit comments