summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-08-30 12:38:05 (GMT)
committerGuido van Rossum <guido@python.org>1994-08-30 12:38:05 (GMT)
commite4ab6475f1d9e97f17bd17206a10c1d8c4c4130c (patch)
tree40a36ce49be8fa5eb9cdadc626cfff15e05f82e8
parentf6971e2958a162298885b6069cc137d973fac356 (diff)
downloadcpython-e4ab6475f1d9e97f17bd17206a10c1d8c4c4130c.zip
cpython-e4ab6475f1d9e97f17bd17206a10c1d8c4c4130c.tar.gz
cpython-e4ab6475f1d9e97f17bd17206a10c1d8c4c4130c.tar.bz2
* 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
-rw-r--r--Python/bltinmodule.c15
-rw-r--r--Python/getmtime.c4
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)