summaryrefslogtreecommitdiffstats
path: root/Include/code.h
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-04-09 12:49:49 (GMT)
committerGitHub <noreply@github.com>2019-04-09 12:49:49 (GMT)
commit4e8e8aabc6e6ae1c989ef288be7bddfdbbc3187d (patch)
treee43ab76f49e1b4ecc8feda8b197a3fcc256e43a2 /Include/code.h
parent87ed1beb3e15c619f25b9a9308d1ec35659feffd (diff)
downloadcpython-4e8e8aabc6e6ae1c989ef288be7bddfdbbc3187d.zip
cpython-4e8e8aabc6e6ae1c989ef288be7bddfdbbc3187d.tar.gz
cpython-4e8e8aabc6e6ae1c989ef288be7bddfdbbc3187d.tar.bz2
bpo-30134: fix BytesWarning doc, docstring and message (GH-12739)
Diffstat (limited to 'Include/code.h')
-rw-r--r--Include/code.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/code.h b/Include/code.h
index 7456fd6..26c571a 100644
--- a/Include/code.h
+++ b/Include/code.h
@@ -104,7 +104,7 @@ PyAPI_FUNC(int) _PyCode_CheckLineNumber(PyCodeObject* co,
*
* Return (type(obj), obj, ...): a tuple with variable size (at least 2 items)
* depending on the type and the value. The type is the first item to not
- * compare bytes and str which can raise a BytesWarning exception. */
+ * compare bytes and unicode which can raise a BytesWarning exception. */
PyAPI_FUNC(PyObject*) _PyCode_ConstantKey(PyObject *obj);
PyAPI_FUNC(PyObject*) PyCode_Optimize(PyObject *code, PyObject* consts,