diff options
author | Christian Heimes <christian@cheimes.de> | 2008-05-26 13:28:38 +0000 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-05-26 13:28:38 +0000 |
commit | b37744af205715d70800c424df04b7da36923603 (patch) | |
tree | 182c4e69a9afdd2ac164b3b00961ba273f41190d /Python/traceback.c | |
parent | 7f6f3da7105c7fc7d0d29f8ccb30c65edeaddb65 (diff) | |
download | cpython-b37744af205715d70800c424df04b7da36923603.tar.gz |
Renamed PyString to PyBytes
Diffstat (limited to 'Python/traceback.c')
-rw-r--r-- | Python/traceback.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/traceback.c b/Python/traceback.c index bbc8e16d51..76e22a188d 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -161,12 +161,12 @@ Py_DisplaySourceLine(PyObject *f, const char *filename, int lineno) PyErr_Clear(); break; } - if (PyString_Check(v)) { + if (PyBytes_Check(v)) { size_t len; - len = PyString_GET_SIZE(v); + len = PyBytes_GET_SIZE(v); if (len + 1 + taillen >= MAXPATHLEN) continue; /* Too long */ - strcpy(namebuf, PyString_AsString(v)); + strcpy(namebuf, PyBytes_AsString(v)); if (strlen(namebuf) != len) continue; /* v contains '\0' */ if (len > 0 && namebuf[len-1] != SEP) |