diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 15 | ||||
-rw-r--r-- | Python/getmtime.c | 4 |
2 files changed, 2 insertions, 17 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 67b7e26..b38ed5b 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 fa2fd02..7c85610 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 <sys/types.h> #include <sys/stat.h> -#endif long getmtime(path) |