Reindented some OS/2 and hpux code that looked ugly or at least

inconsistent.
This commit is contained in:
Guido van Rossum 1998-07-08 13:47:12 +00:00
parent 7ba30431ec
commit bb71ab68f9

View file

@ -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);