summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-07 18:10:24 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-07 18:10:24 (GMT)
commit52d168a9950cc0933b6f650e5fdebfad13347e88 (patch)
tree513a176653aeddee22e0d0b3571360b7d4cc21a4 /Parser
parent22ec03c286094298227b2068fa02bcafedf76860 (diff)
downloadcpython-52d168a9950cc0933b6f650e5fdebfad13347e88.zip
cpython-52d168a9950cc0933b6f650e5fdebfad13347e88.tar.gz
cpython-52d168a9950cc0933b6f650e5fdebfad13347e88.tar.bz2
Remove traces of Py_USING_UNICODE and Unicode-specific conditionals in configure.
Rename --enable-unicode to --with-wide-unicode; the default is still not wide.
Diffstat (limited to 'Parser')
-rw-r--r--Parser/parsetok.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index 8d0704a..0b3314e 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -218,10 +218,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
assert(tok->cur - tok->buf < INT_MAX);
err_ret->offset = (int)(tok->cur - tok->buf);
len = tok->inp - tok->buf;
-#ifdef Py_USING_UNICODE
text = PyTokenizer_RestoreEncoding(tok, len, &err_ret->offset);
-
-#endif
if (text == NULL) {
text = (char *) PyObject_MALLOC(len + 1);
if (text != NULL) {