mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Reindented some OS/2 and hpux code that looked ugly or at least
inconsistent.
This commit is contained in:
parent
7ba30431ec
commit
bb71ab68f9
1 changed files with 28 additions and 29 deletions
|
@ -519,7 +519,8 @@ _PyImport_LoadDynamicModule(name, pathname, fp)
|
|||
if (rc != NO_ERROR) {
|
||||
char errBuf[256];
|
||||
sprintf(errBuf,
|
||||
"DLL load failed, rc = %d, problem '%s': %s", rc, failreason);
|
||||
"DLL load failed, rc = %d, problem '%s': %s",
|
||||
rc, failreason);
|
||||
PyErr_SetString(PyExc_ImportError, errBuf);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -574,16 +575,14 @@ _PyImport_LoadDynamicModule(name, pathname, fp)
|
|||
int flags;
|
||||
|
||||
flags = BIND_FIRST | BIND_DEFERRED;
|
||||
if (Py_VerboseFlag)
|
||||
{
|
||||
if (Py_VerboseFlag) {
|
||||
flags = DYNAMIC_PATH | BIND_FIRST | BIND_IMMEDIATE |
|
||||
BIND_NONFATAL | BIND_VERBOSE;
|
||||
printf("shl_load %s\n",pathname);
|
||||
}
|
||||
lib = shl_load(pathname, flags, 0);
|
||||
/* XXX Chuck Blake once wrote that 0 should be BIND_NOSTART? */
|
||||
if (lib == NULL)
|
||||
{
|
||||
if (lib == NULL) {
|
||||
char buf[256];
|
||||
if (Py_VerboseFlag)
|
||||
perror(pathname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue