cpython/Include
Greg Price 3a4f66707e Cut disused recode_encoding logic in _PyBytes_DecodeEscape. (GH-16013)
All call sites pass NULL for `recode_encoding`, so this path is
completely untested.  That's been true since before Python 3.0.
It adds significant complexity to this logic, so it's best to
take it out.

All call sites now have a literal NULL, and that's been true since
commit 768921cf3 eliminated a conditional (`foo ? bar : NULL`) at
the call site in Python/ast.c where we're parsing a bytes literal.
But even before then, that condition `foo` had been a constant
since unadorned string literals started meaning Unicode, in commit
572dbf8f1 aka v3.0a1~1035 .

The `unicode` parameter is already unused, so mark it as unused too.
The code that acted on it was also taken out before Python 3.0, in
commit 8d30cc014 aka v3.0a1~1031 .

The function (PyBytes_DecodeEscape) is exposed in the API, but it's
never been documented.
2019-09-12 19:12:22 +01:00
..
cpython bpo-36763: Implement PyWideStringList_Insert() of PEP 587 (GH-15423) 2019-08-23 16:57:54 +01:00
internal bpo-37878: Remove PyThreadState_DeleteCurrent() function (GH-15315) 2019-09-05 18:06:49 +02:00
Python-ast.h bpo-21120: Exclude Python-ast.h, ast.h and asdl.h from the limited API (#14634) 2019-09-12 10:27:14 +01:00
Python.h bpo-36763: Implement the PEP 587 (GH-13592) 2019-05-27 16:39:22 +02:00
abstract.h Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
asdl.h bpo-21120: Exclude Python-ast.h, ast.h and asdl.h from the limited API (#14634) 2019-09-12 10:27:14 +01:00
ast.h bpo-21120: Exclude Python-ast.h, ast.h and asdl.h from the limited API (#14634) 2019-09-12 10:27:14 +01:00
bitset.h bpo-36623: Clean parser headers and include files (GH-12253) 2019-04-13 17:05:14 +01:00
bltinmodule.h
boolobject.h
bytearrayobject.h
bytes_methods.h
bytesobject.h Cut disused recode_encoding logic in _PyBytes_DecodeEscape. (GH-16013) 2019-09-12 19:12:22 +01:00
cellobject.h
ceval.h bpo-29548: deprecate PyEval_Call* functions (GH-14804) 2019-07-24 21:02:49 +09:00
classobject.h bpo-36974: implement PEP 590 (GH-13185) 2019-05-29 20:31:52 +02:00
code.h bpo-37221: Add PyCode_NewWithPosOnlyArgs to be used internally and set PyCode_New as a compatibility wrapper (GH-13959) 2019-07-01 12:35:05 +02:00
codecs.h
compile.h bpo-37253: Add _PyCompilerFlags_INIT macro (GH-14018) 2019-06-13 02:16:41 +02:00
complexobject.h
context.h
datetime.h
descrobject.h bpo-36974: separate vectorcall functions for each calling convention (GH-13781) 2019-07-05 14:48:24 +02:00
dictobject.h
dtoa.h
dynamic_annotations.h
enumobject.h
errcode.h
eval.h
fileobject.h bpo-36842: Implement PEP 578 (GH-12613) 2019-05-23 08:45:22 -07:00
fileutils.h bpo-37834: Normalise handling of reparse points on Windows (GH-15231) 2019-08-21 15:27:33 -07:00
floatobject.h
frameobject.h bpo-35134: Split traceback.h header (GH-13430) 2019-05-20 00:14:57 +02:00
funcobject.h bpo-37151: remove _PyFunction_FastCallDict (GH-13864) 2019-06-18 20:05:41 +09:00
genobject.h bpo-15088 : Remove PyGen_NeedsFinalizing() (GH-15702) 2019-09-06 17:41:38 +02:00
graminit.h
grammar.h fix warnings by adding more const (GH-12924) 2019-04-23 20:39:37 +09:00
import.h bpo-36710: Remove PyImport_Cleanup() function (GH-14221) 2019-06-19 10:36:10 +02:00
interpreteridobject.h bpo-36097: Use only public C-API in the_xxsubinterpreters module (adding as necessary). (gh-12359) 2019-03-15 16:35:46 -06:00
intrcheck.h bpo-33407: Implement Py_DEPRECATED() on MSVC (GH-8980) 2019-05-28 17:16:33 +02:00
iterobject.h
listobject.h
longintrepr.h
longobject.h Cut disused recode_encoding logic in _PyBytes_DecodeEscape. (GH-16013) 2019-09-12 19:12:22 +01:00
marshal.h
memoryobject.h
methodobject.h bpo-37151: remove special case for PyCFunction from PyObject_Call (GH-14684) 2019-09-11 12:01:01 +01:00
modsupport.h bpo-37034: Display argument name on errors with keyword arguments with Argument Clinic. (GH-13593) 2019-08-29 17:49:08 +03:00
moduleobject.h bpo-33407: Implement Py_DEPRECATED() on MSVC (GH-8980) 2019-05-28 17:16:33 +02:00
namespaceobject.h
node.h
object.h Typo fix in file Include/object.h (GH-14556) 2019-07-05 14:37:15 -07:00
objimpl.h bpo-35810: Incref heap-allocated types in PyObject_Init (GH-11661) 2019-03-27 12:52:18 +01:00
odictobject.h
opcode.h bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073) 2019-08-25 12:44:09 +03:00
osdefs.h
osmodule.h
parsetok.h
patchlevel.h Bump to 3.9.0a0 2019-06-04 22:12:32 +02:00
picklebufobject.h bpo-36785: PEP 574 implementation (GH-7076) 2019-05-26 17:10:09 +02:00
py_curses.h
pyarena.h
pycapsule.h
pyctype.h
pydebug.h
pydtrace.d bpo-36842: Implement PEP 578 (GH-12613) 2019-05-23 08:45:22 -07:00
pydtrace.h bpo-36842: Implement PEP 578 (GH-12613) 2019-05-23 08:45:22 -07:00
pyerrors.h bpo-37757: Disallow PEP 572 cases that expose implementation details (GH-15131) 2019-08-25 23:45:40 +10:00
pyexpat.h
pyfpe.h
pyhash.h Fix typos mostly in comments, docs and test names (GH-15209) 2019-08-30 16:21:19 -04:00
pylifecycle.h bpo-36763: Make Py_BytesMain() public (GH-15532) 2019-08-27 00:45:45 +02:00
pymacconfig.h
pymacro.h Enhance Py_UNREACHABLE macro (GH-16032) 2019-09-12 13:35:48 +01:00
pymath.h Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
pymem.h bpo-35134: Add Include/cpython/pymem.h (GH-12840) 2019-04-15 17:00:19 +02:00
pyport.h bpo-37781: use "z" for PY_FORMAT_SIZE_T (GH-15156) 2019-08-31 08:48:12 +09:00
pystate.h bpo-37878: Remove PyThreadState_DeleteCurrent() function (GH-15315) 2019-09-05 18:06:49 +02:00
pystrcmp.h
pystrhex.h bpo-22385: Support output separators in hex methods. (#13578) 2019-05-29 11:46:58 -07:00
pystrtod.h
pythonrun.h bpo-37189: Export old PyRun_XXX() functions (#14142) 2019-06-18 00:15:13 +02:00
pythread.h bpo-37077: Add native thread ID (TID) for AIX (GH-13624) 2019-06-13 15:34:46 -07:00
pytime.h Fix _PyTime_MIN/MAX values (GH-15384) 2019-08-23 16:39:09 +01:00
rangeobject.h
setobject.h
sliceobject.h bpo-33407: Implement Py_DEPRECATED() on MSVC (GH-8980) 2019-05-28 17:16:33 +02:00
structmember.h
structseq.h
symtable.h bpo-37757: Disallow PEP 572 cases that expose implementation details (GH-15131) 2019-08-25 23:45:40 +10:00
sysmodule.h bpo-36842: Implement PEP 578 (GH-12613) 2019-05-23 08:45:22 -07:00
token.h
traceback.h bpo-35134: Split traceback.h header (GH-13430) 2019-05-20 00:14:57 +02:00
tracemalloc.h
tupleobject.h
typeslots.h
ucnhash.h
unicodeobject.h bpo-33407: Implement Py_DEPRECATED() on MSVC (GH-8980) 2019-05-28 17:16:33 +02:00
warnings.h
weakrefobject.h