From e4ab6475f1d9e97f17bd17206a10c1d8c4c4130c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 30 Aug 1994 12:38:05 +0000 Subject: [PATCH] * Python/getmtime.c: Remove mac specifics (Mac subdirectory has its own version now) * Python/bltinmodule.c (builtin_tuple): use pre-existing listtuple(v) for lists --- Python/bltinmodule.c | 15 ++------------- Python/getmtime.c | 4 ---- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 67b7e26b840..b38ed5bbe6e 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1178,19 +1178,8 @@ builtin_tuple(self, v) INCREF(v); return v; } - if (is_listobject(v)) { - int n = getlistsize(v); - object *t = newtupleobject(n); - if (t != NULL) { - int i; - for (i = 0; i < n; i++) { - object *item = getlistitem(v, i); - INCREF(item); - settupleitem(t, i, item); - } - } - return t; - } + if (is_listobject(v)) + return listtuple(v); if (is_stringobject(v)) { int n = getstringsize(v); object *t = newtupleobject(n); diff --git a/Python/getmtime.c b/Python/getmtime.c index fa2fd028340..7c856106218 100644 --- a/Python/getmtime.c +++ b/Python/getmtime.c @@ -30,12 +30,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "config.h" #endif -#ifdef macintosh -#include "stat.h" -#else #include #include -#endif long getmtime(path)