summaryrefslogtreecommitdiff
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-22 03:31:20 +0100
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-22 03:31:20 +0100
commit806c2672ae49f639fd7a8a14a9a8ce67a14e94a6 (patch)
treeebbd7fbac0dd7de1718e60f4f23d6e06d5ff9f0d /Python/traceback.c
parente9a8da1ace0abf913886f7a52b2bfe3666210310 (diff)
downloadcpython-806c2672ae49f639fd7a8a14a9a8ce67a14e94a6.tar.gz
Remove "#ifdef Py_UNICODE_WIDE": Python is now always wide
Diffstat (limited to 'Python/traceback.c')
-rw-r--r--Python/traceback.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index 2f4653bce6..c8b3ee1b63 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -526,23 +526,17 @@ dump_ascii(int fd, PyObject *text)
char c = (char)ch;
write(fd, &c, 1);
}
- else if (ch < 256) {
+ else if (ch < 0xff) {
PUTS(fd, "\\x");
dump_hexadecimal(2, ch, fd);
}
- else
-#ifdef Py_UNICODE_WIDE
- if (ch < 65536)
-#endif
- {
+ else if (ch < 0xffff) {
PUTS(fd, "\\u");
dump_hexadecimal(4, ch, fd);
-#ifdef Py_UNICODE_WIDE
}
else {
PUTS(fd, "\\U");
dump_hexadecimal(8, ch, fd);
-#endif
}
}
if (truncated)