mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-119180: Rename SOURCE format to STRING (#124620)
This commit is contained in:
parent
a4d1fdfb15
commit
2c10832887
11 changed files with 156 additions and 171 deletions
|
@ -168,7 +168,7 @@ constevaluator_call(PyObject *self, PyObject *args, PyObject *kwargs)
|
|||
return NULL;
|
||||
}
|
||||
PyObject *value = ((constevaluatorobject *)self)->value;
|
||||
if (format == 3) { // SOURCE
|
||||
if (format == 3) { // STRING
|
||||
PyUnicodeWriter *writer = PyUnicodeWriter_Create(5); // cannot be <5
|
||||
if (writer == NULL) {
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue