mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Make Python compile with --disable-unicode.
This commit is contained in:
parent
aed6c66aa8
commit
dfe5dc8455
4 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue