diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1998-10-12 20:53:15 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1998-10-12 20:53:15 (GMT) |
commit | deff89c8be78ed962d989bd88c5b3ee292263596 (patch) | |
tree | c394e51426f071b8dcfc11418cb6280e425b3d80 /Mac/Python | |
parent | 3179b36014d1dd48cc3f1363edf4b1adecc12c79 (diff) | |
download | cpython-deff89c8be78ed962d989bd88c5b3ee292263596.zip cpython-deff89c8be78ed962d989bd88c5b3ee292263596.tar.gz cpython-deff89c8be78ed962d989bd88c5b3ee292263596.tar.bz2 |
Replaced fprintf(stderr,...) with PySys_WriteStderr(...) where appropriate.
Diffstat (limited to 'Mac/Python')
-rw-r--r-- | Mac/Python/macimport.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Mac/Python/macimport.c b/Mac/Python/macimport.c index 627f828..e079d2e 100644 --- a/Mac/Python/macimport.c +++ b/Mac/Python/macimport.c @@ -271,8 +271,7 @@ PyMac_LoadCodeResourceModule(name, pathname) Py_XDECREF(s); #endif if (Py_VerboseFlag) - fprintf(stderr, - "import %s # pyd fragment %#s loaded from %s\n", + PySys_WriteStderr("import %s # pyd fragment %#s loaded from %s\n", name, fragmentname, pathname); Py_INCREF(m); return m; @@ -389,7 +388,7 @@ packageerror: m = NULL; } if (Py_VerboseFlag) - fprintf(stderr, "import %s # pyc resource from %s\n", + PySys_WriteStderr("import %s # pyc resource from %s\n", module, filename); return m; error: @@ -459,7 +458,7 @@ PyMac_FindModuleExtension(char *buf, int *lenp, char *module) strcpy((char *)fnbuf+1+modnamelen, fdp->suffix); fnbuf[0] = strlen((char *)fnbuf+1); if (Py_VerboseFlag > 1) - fprintf(stderr, "# trying %s%s\n", buf, fdp->suffix); + PySys_WriteStderr("# trying %s%s\n", buf, fdp->suffix); if ( FSMakeFSSpec(refnum, dirid, fnbuf, &fss) == noErr ) { /* Found it. */ #if 0 |