summaryrefslogtreecommitdiff
path: root/Python/future.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-25 07:41:59 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-25 07:41:59 +0000
commita369c5aba6fcc545b0d3d40050da6e2ff33e06fb (patch)
tree474b4fecb47b345fdd1305e908db7716c83ca89c /Python/future.c
parent1978470c3b5bd5729bd90b21e0700a6a60f08622 (diff)
downloadcpython-git-a369c5aba6fcc545b0d3d40050da6e2ff33e06fb.tar.gz
Use unicode
Diffstat (limited to 'Python/future.c')
-rw-r--r--Python/future.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/future.c b/Python/future.c
index 2092f58753..dca1d8373d 100644
--- a/Python/future.c
+++ b/Python/future.c
@@ -20,7 +20,7 @@ future_check_features(PyFutureFeatures *ff, stmt_ty s, const char *filename)
names = s->v.ImportFrom.names;
for (i = 0; i < asdl_seq_LEN(names); i++) {
alias_ty name = (alias_ty)asdl_seq_GET(names, i);
- const char *feature = PyString_AsString(name->name);
+ const char *feature = PyUnicode_AsString(name->name);
if (!feature)
return 0;
if (strcmp(feature, FUTURE_NESTED_SCOPES) == 0) {