diff options
author | Georg Brandl <georg@python.org> | 2008-01-07 18:16:36 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-01-07 18:16:36 +0000 |
commit | dfe5dc8455de93fddb3030416e41b92d3a0fd267 (patch) | |
tree | 4a088e75d976c7383f525d730f4f5f5a88cd0a49 /Parser/tokenizer.c | |
parent | aed6c66aa8c9d1d2af9e60323e688452dfd6b6c7 (diff) | |
download | cpython-git-dfe5dc8455de93fddb3030416e41b92d3a0fd267.tar.gz |
Make Python compile with --disable-unicode.
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r-- | Parser/tokenizer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index f59ab59ad5..7fcff201de 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -1533,6 +1533,7 @@ PyTokenizer_Get(struct tok_state *tok, char **p_start, char **p_end) return result; } +#ifdef Py_USING_UNICODE /* This function is only called from parsetok. However, it cannot live there, as it must be empty for PGEN, and we can check for PGEN only in this file. */ @@ -1593,6 +1594,7 @@ PyTokenizer_RestoreEncoding(struct tok_state* tok, int len, int *offset) } #endif +#endif /* defined(Py_USING_UNICODE) */ #ifdef Py_DEBUG |