bpo-45855: Replaced deprecated PyImport_ImportModuleNoBlock with PyImport_ImportModule (GH-30046)
This commit is contained in:
@@ -1527,7 +1527,7 @@ static int _PyCodecRegistry_Init(void)
|
||||
}
|
||||
}
|
||||
|
||||
mod = PyImport_ImportModuleNoBlock("encodings");
|
||||
mod = PyImport_ImportModule("encodings");
|
||||
if (mod == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user