diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-16 09:42:29 +0300 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-16 09:42:29 +0300 |
| commit | bcde10aa7e47da68afb68fe75c65b9339dd89f86 (patch) | |
| tree | ebef495abc0010a3b9f028627c9d8f115d93dafc /Objects/stringlib/transmogrify.h | |
| parent | cbcc2fd641de178e139b59f0c08bb738e9d4835e (diff) | |
| download | cpython-git-bcde10aa7e47da68afb68fe75c65b9339dd89f86.tar.gz | |
Issue #26765: Ensure that bytes- and unicode-specific stringlib files are used
with correct type.
Diffstat (limited to 'Objects/stringlib/transmogrify.h')
| -rw-r--r-- | Objects/stringlib/transmogrify.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/stringlib/transmogrify.h b/Objects/stringlib/transmogrify.h index 8b147dec82..625507ddb1 100644 --- a/Objects/stringlib/transmogrify.h +++ b/Objects/stringlib/transmogrify.h @@ -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. */ |
