summaryrefslogtreecommitdiff
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2003-12-22 16:31:41 +0000
committerSkip Montanaro <skip@pobox.com>2003-12-22 16:31:41 +0000
commit2167683dac09e155698ac3955599bf62de0dfeac (patch)
treea3cf04216e63f2e400f9ecaa90080d60b899892a /Objects/stringobject.c
parent2928735330d5eaf049392c734265734cfc899af5 (diff)
downloadcpython-2167683dac09e155698ac3955599bf62de0dfeac.tar.gz
There are places in Python which assume bytes have 8-bits. Formalize that a
bit by checking the value of UCHAR_MAX in Include/Python.h. There was a check in Objects/stringobject.c. Remove that. (Note that we don't define UCHAR_MAX if it's not defined as the old test did.)
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 9512059617..2d695706f5 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -8,10 +8,6 @@
int null_strings, one_strings;
#endif
-#if !defined(HAVE_LIMITS_H) && !defined(UCHAR_MAX)
-#define UCHAR_MAX 255
-#endif
-
static PyStringObject *characters[UCHAR_MAX + 1];
static PyStringObject *nullstring;