mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #26765: Ensure that bytes- and unicode-specific stringlib files are used
with correct type.
This commit is contained in:
parent
cbcc2fd641
commit
bcde10aa7e
6 changed files with 15 additions and 12 deletions
|
@ -1,5 +1,6 @@
|
|||
/* NOTE: this API is -ONLY- for use with single byte character strings. */
|
||||
/* Do not use it with Unicode. */
|
||||
#if STRINGLIB_IS_UNICODE
|
||||
# error "transmogrify.h only compatible with byte-wise strings"
|
||||
#endif
|
||||
|
||||
/* the more complicated methods. parts of these should be pulled out into the
|
||||
shared code in bytes_methods.c to cut down on duplicate code bloat. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue