diff options
author | Eric Smith <eric@trueblade.com> | 2007-09-01 10:56:01 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2007-09-01 10:56:01 (GMT) |
commit | 37f10386f1bedb992f3d9770b2f71b5edda2abbe (patch) | |
tree | 7c258bc40124636d938c6f7d61840c29fb7952cd /Objects/stringlib/stringdefs.h | |
parent | a95207ab3bce39b8278fc479d1d391365ffc7a7c (diff) | |
download | cpython-37f10386f1bedb992f3d9770b2f71b5edda2abbe.zip cpython-37f10386f1bedb992f3d9770b2f71b5edda2abbe.tar.gz cpython-37f10386f1bedb992f3d9770b2f71b5edda2abbe.tar.bz2 |
Changed to use 'U' argument to PyArg_ParseTuple, instead of manually checking for unicode objects.
Diffstat (limited to 'Objects/stringlib/stringdefs.h')
-rw-r--r-- | Objects/stringlib/stringdefs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/stringlib/stringdefs.h b/Objects/stringlib/stringdefs.h index af9bbd6..a4be17f 100644 --- a/Objects/stringlib/stringdefs.h +++ b/Objects/stringlib/stringdefs.h @@ -8,6 +8,7 @@ #define STRINGLIB_CHAR char #define STRINGLIB_TYPE_NAME "string" +#define STRINGLIB_PARSE_CODE "S" #define STRINGLIB_EMPTY string_empty #define STRINGLIB_ISDECIMAL(x) ((x >= '0') && (x <= '9')) #define STRINGLIB_TODECIMAL(x) (STRINGLIB_ISDECIMAL(x) ? (x - '0') : -1) |