Mercurial > cpython-lru_cache-weakref
diff Python/future.c @ 42822:302aeee32da8
Use unicode
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sat, 25 Aug 2007 07:41:59 +0000 |
| parents | cd125fe83051 |
| children | 305d7d2ce047 |
line wrap: on
line diff
--- a/Python/future.c Sat Aug 25 05:22:02 2007 +0000 +++ b/Python/future.c Sat Aug 25 07:41:59 2007 +0000 @@ -20,7 +20,7 @@ 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) {
