summaryrefslogtreecommitdiff
path: root/Python/future.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-03-15 04:58:47 +0000
committerGuido van Rossum <guido@python.org>2006-03-15 04:58:47 +0000
commit45aecf451a64fb1ebe5e74d0b00965ac8d99dff6 (patch)
treea7edcfb45ceafcffde68a3542aeba67089ea81cb /Python/future.c
parentf3175f6341ae207543a0d2d3be36c457349066e6 (diff)
downloadcpython-git-45aecf451a64fb1ebe5e74d0b00965ac8d99dff6.tar.gz
Checkpoint. 218 tests are okay; 53 are failing. Done so far:
- all classes are new-style (but ripping out classobject.[ch] isn't done) - int/int -> float - all exceptions must derive from BaseException - absolute import - 'as' and 'with' are keywords
Diffstat (limited to 'Python/future.c')
-rw-r--r--Python/future.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/future.c b/Python/future.c
index 4a48ba53e4..1902f1da5d 100644
--- a/Python/future.c
+++ b/Python/future.c
@@ -28,11 +28,11 @@ future_check_features(PyFutureFeatures *ff, stmt_ty s, const char *filename)
} else if (strcmp(feature, FUTURE_GENERATORS) == 0) {
continue;
} else if (strcmp(feature, FUTURE_DIVISION) == 0) {
- ff->ff_features |= CO_FUTURE_DIVISION;
+ continue;
} else if (strcmp(feature, FUTURE_ABSIMPORT) == 0) {
- ff->ff_features |= CO_FUTURE_ABSIMPORT;
+ continue;
} else if (strcmp(feature, FUTURE_WITH_STATEMENT) == 0) {
- ff->ff_features |= CO_FUTURE_WITH_STATEMENT;
+ continue;
} else if (strcmp(feature, "braces") == 0) {
PyErr_SetString(PyExc_SyntaxError,
"not a chance");