summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-04-03 06:26:32 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-04-03 06:26:32 (GMT)
commitcbce280d4f3f1c4d86a989ab85c93f13ec7e00f9 (patch)
treebb203d57376de6d1377f8d810a3583bc08b796ab /Python
parentf5af2aac3805a7b6fc1d9b056b0662293bc0b274 (diff)
downloadcpython-cbce280d4f3f1c4d86a989ab85c93f13ec7e00f9.zip
cpython-cbce280d4f3f1c4d86a989ab85c93f13ec7e00f9.tar.gz
cpython-cbce280d4f3f1c4d86a989ab85c93f13ec7e00f9.tar.bz2
Don't abbreviate ABS, use long name ABSOLUTE.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c4
-rw-r--r--Python/future.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/Python/compile.c b/Python/compile.c
index d4fb638..0f7246b 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -2476,7 +2476,7 @@ compiler_import(struct compiler *c, stmt_ty s)
int r;
PyObject *level;
- if (c->c_flags && (c->c_flags->cf_flags & CO_FUTURE_ABSIMPORT))
+ if (c->c_flags && (c->c_flags->cf_flags & CO_FUTURE_ABSOLUTE_IMPORT))
level = PyInt_FromLong(0);
else
level = PyInt_FromLong(-1);
@@ -2524,7 +2524,7 @@ compiler_from_import(struct compiler *c, stmt_ty s)
return 0;
if (s->v.ImportFrom.level == 0 && c->c_flags &&
- !(c->c_flags->cf_flags & CO_FUTURE_ABSIMPORT))
+ !(c->c_flags->cf_flags & CO_FUTURE_ABSOLUTE_IMPORT))
level = PyInt_FromLong(-1);
else
level = PyInt_FromLong(s->v.ImportFrom.level);
diff --git a/Python/future.c b/Python/future.c
index 4a48ba5..d22ed34 100644
--- a/Python/future.c
+++ b/Python/future.c
@@ -29,8 +29,8 @@ future_check_features(PyFutureFeatures *ff, stmt_ty s, const char *filename)
continue;
} else if (strcmp(feature, FUTURE_DIVISION) == 0) {
ff->ff_features |= CO_FUTURE_DIVISION;
- } else if (strcmp(feature, FUTURE_ABSIMPORT) == 0) {
- ff->ff_features |= CO_FUTURE_ABSIMPORT;
+ } else if (strcmp(feature, FUTURE_ABSOLUTE_IMPORT) == 0) {
+ ff->ff_features |= CO_FUTURE_ABSOLUTE_IMPORT;
} else if (strcmp(feature, FUTURE_WITH_STATEMENT) == 0) {
ff->ff_features |= CO_FUTURE_WITH_STATEMENT;
} else if (strcmp(feature, "braces") == 0) {