diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-04-11 20:46:23 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-04-11 20:46:23 (GMT) |
commit | 8ab04b4d65586829887822a78d038a33ee7a69fd (patch) | |
tree | f276fd46f065664b962b12a2e51d78a44fa86c14 /Mac/Modules | |
parent | 9b745f6665da02c4349e8a4e592dc42d6524b8d1 (diff) | |
download | cpython-8ab04b4d65586829887822a78d038a33ee7a69fd.zip cpython-8ab04b4d65586829887822a78d038a33ee7a69fd.tar.gz cpython-8ab04b4d65586829887822a78d038a33ee7a69fd.tar.bz2 |
Got rid of ifdefs for long-obsolete GUSI versions.
Diffstat (limited to 'Mac/Modules')
-rw-r--r-- | Mac/Modules/macmodule.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Mac/Modules/macmodule.c b/Mac/Modules/macmodule.c index 93dfaee..8b3bcc5 100644 --- a/Mac/Modules/macmodule.c +++ b/Mac/Modules/macmodule.c @@ -46,9 +46,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #undef S_IWRITE #undef S_IEXEC -#ifdef USE_GUSI1 -#include <GUSI.h> -#endif /* USE_GUSI1 */ #include <sys/types.h> #include <sys/stat.h> #else /* USE_GUSI */ @@ -181,17 +178,7 @@ mac_chdir(self, args) PyObject *self; PyObject *args; { -#ifdef USE_GUSI1 - PyObject *rv; - - /* Change MacOS's idea of wd too */ - rv = mac_1str(args, chdir); - PyMac_FixGUSIcd(); - return rv; -#else return mac_1str(args, chdir); -#endif - } static PyObject * @@ -205,11 +192,8 @@ mac_close(self, args) Py_BEGIN_ALLOW_THREADS res = close(fd); Py_END_ALLOW_THREADS -#ifndef USE_GUSI1 - /* GUSI gives surious errors here? */ if (res < 0) return mac_error(); -#endif Py_INCREF(Py_None); return Py_None; } @@ -385,11 +369,7 @@ mac_mkdir(self, args) if (!PyArg_ParseTuple(args, "s|i", &path, &mode)) return NULL; Py_BEGIN_ALLOW_THREADS -#ifdef USE_GUSI1 - res = mkdir(path); -#else res = mkdir(path, mode); -#endif Py_END_ALLOW_THREADS if (res < 0) return mac_error(); |