Skip to content
Permalink
Browse files

bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_…

…async (GH-13464)

Automatically replace
tp_print -> tp_vectorcall_offset
tp_compare -> tp_as_async
tp_reserved -> tp_as_async
  • Loading branch information...
jdemeyer authored and benjaminp committed May 31, 2019
1 parent 4c23aff commit 530f506ac91338b55cf2be71b1cdf50cb077512f
Showing with 516 additions and 518 deletions.
  1. +2 −2 Modules/_blake2/blake2b_impl.c
  2. +2 −2 Modules/_blake2/blake2s_impl.c
  3. +4 −4 Modules/_bz2module.c
  4. +10 −10 Modules/_collectionsmodule.c
  5. +6 −6 Modules/_csv.c
  6. +30 −30 Modules/_ctypes/_ctypes.c
  7. +2 −2 Modules/_ctypes/callbacks.c
  8. +2 −2 Modules/_ctypes/callproc.c
  9. +2 −2 Modules/_ctypes/cfield.c
  10. +2 −2 Modules/_ctypes/stgdict.c
  11. +2 −2 Modules/_cursesmodule.c
  12. +13 −14 Modules/_datetimemodule.c
  13. +2 −2 Modules/_dbmmodule.c
  14. +8 −8 Modules/_decimal/_decimal.c
  15. +8 −8 Modules/_elementtree.c
  16. +8 −8 Modules/_functoolsmodule.c
  17. +2 −2 Modules/_gdbmmodule.c
  18. +2 −2 Modules/_hashopenssl.c
  19. +10 −10 Modules/_io/bufferedio.c
  20. +4 −4 Modules/_io/bytesio.c
  21. +2 −2 Modules/_io/fileio.c
  22. +4 −4 Modules/_io/iobase.c
  23. +2 −2 Modules/_io/stringio.c
  24. +6 −6 Modules/_io/textio.c
  25. +2 −2 Modules/_io/winconsoleio.c
  26. +4 −4 Modules/_json.c
  27. +2 −2 Modules/_lsprof.c
  28. +4 −4 Modules/_lzmamodule.c
  29. +2 −2 Modules/_multiprocessing/semaphore.c
  30. +6 −6 Modules/_operator.c
  31. +8 −8 Modules/_pickle.c
  32. +2 −2 Modules/_queuemodule.c
  33. +2 −2 Modules/_randommodule.c
  34. +2 −2 Modules/_sha3/sha3module.c
  35. +4 −4 Modules/_sqlite/cache.c
  36. +2 −2 Modules/_sqlite/connection.c
  37. +2 −2 Modules/_sqlite/cursor.c
  38. +2 −2 Modules/_sqlite/prepare_protocol.c
  39. +2 −2 Modules/_sqlite/row.c
  40. +2 −2 Modules/_sqlite/statement.c
  41. +6 −6 Modules/_sre.c
  42. +8 −8 Modules/_ssl.c
  43. +4 −4 Modules/_struct.c
  44. +4 −4 Modules/_testbuffer.c
  45. +11 −11 Modules/_testcapimodule.c
  46. +8 −8 Modules/_threadmodule.c
  47. +2 −2 Modules/_winapi.c
  48. +1 −1 Modules/_xxsubinterpretersmodule.c
  49. +4 −4 Modules/arraymodule.c
  50. +10 −10 Modules/cjkcodecs/multibytecodec.c
  51. +40 −40 Modules/itertoolsmodule.c
  52. +2 −2 Modules/md5module.c
  53. +2 −2 Modules/mmapmodule.c
  54. +4 −4 Modules/ossaudiodev.c
  55. +2 −2 Modules/overlapped.c
  56. +2 −2 Modules/parsermodule.c
  57. +4 −4 Modules/posixmodule.c
  58. +2 −2 Modules/pyexpat.c
  59. +10 −10 Modules/selectmodule.c
  60. +2 −2 Modules/sha1module.c
  61. +4 −4 Modules/sha256module.c
  62. +4 −4 Modules/sha512module.c
  63. +2 −2 Modules/socketmodule.c
  64. +2 −2 Modules/unicodedata.c
  65. +6 −6 Modules/xxmodule.c
  66. +4 −4 Modules/xxsubtype.c
  67. +4 −4 Modules/zlibmodule.c
  68. +2 −2 Objects/boolobject.c
  69. +4 −4 Objects/bytearrayobject.c
  70. +4 −4 Objects/bytesobject.c
  71. +2 −2 Objects/capsule.c
  72. +2 −2 Objects/cellobject.c
  73. +3 −3 Objects/classobject.c
  74. +2 −2 Objects/codeobject.c
  75. +2 −2 Objects/complexobject.c
  76. +15 −15 Objects/descrobject.c
  77. +14 −14 Objects/dictobject.c
  78. +4 −4 Objects/enumobject.c
  79. +2 −2 Objects/exceptions.c
  80. +2 −2 Objects/fileobject.c
  81. +2 −2 Objects/floatobject.c
  82. +2 −2 Objects/frameobject.c
  83. +5 −5 Objects/funcobject.c
  84. +7 −7 Objects/genobject.c
  85. +1 −1 Objects/interpreteridobject.c
  86. +4 −4 Objects/iterobject.c
  87. +6 −6 Objects/listobject.c
  88. +2 −2 Objects/longobject.c
  89. +4 −4 Objects/memoryobject.c
  90. +1 −1 Objects/methodobject.c
  91. +2 −2 Objects/moduleobject.c
  92. +2 −2 Objects/namespaceobject.c
  93. +5 −5 Objects/object.c
  94. +10 −10 Objects/odictobject.c
  95. +6 −6 Objects/rangeobject.c
  96. +8 −8 Objects/setobject.c
  97. +4 −4 Objects/sliceobject.c
  98. +4 −4 Objects/stringlib/unicode_format.h
  99. +4 −4 Objects/tupleobject.c
  100. +6 −7 Objects/typeobject.c
  101. +6 −6 Objects/unicodeobject.c
  102. +6 −6 Objects/weakrefobject.c
  103. +8 −8 PC/_msi.c
  104. +2 −2 PC/winreg.c
  105. +2 −2 Parser/asdl_c.py
  106. +2 −2 Python/Python-ast.c
  107. +6 −6 Python/bltinmodule.c
  108. +2 −2 Python/symtable.c
  109. +2 −2 Python/traceback.c
@@ -401,10 +401,10 @@ PyTypeObject PyBlake2_BLAKE2bType = {
sizeof(BLAKE2bObject), /* tp_basicsize */
0, /* tp_itemsize */
py_blake2b_dealloc, /* tp_dealloc */
0, /* tp_print */
0, /*tp_vectorcall_offset*/
0, /* tp_getattr */
0, /* tp_setattr */
0, /* tp_compare */
0, /* tp_as_async */
0, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_sequence */
@@ -401,10 +401,10 @@ PyTypeObject PyBlake2_BLAKE2sType = {
sizeof(BLAKE2sObject), /* tp_basicsize */
0, /* tp_itemsize */
py_blake2s_dealloc, /* tp_dealloc */
0, /* tp_print */
0, /*tp_vectorcall_offset*/
0, /* tp_getattr */
0, /* tp_setattr */
0, /* tp_compare */
0, /* tp_as_async */
0, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_sequence */
@@ -349,10 +349,10 @@ static PyTypeObject BZ2Compressor_Type = {
sizeof(BZ2Compressor), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)BZ2Compressor_dealloc, /* tp_dealloc */
0, /* tp_print */
0, /* tp_vectorcall_offset */
0, /* tp_getattr */
0, /* tp_setattr */
0, /* tp_reserved */
0, /* tp_as_async */
0, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_sequence */
@@ -690,10 +690,10 @@ static PyTypeObject BZ2Decompressor_Type = {
sizeof(BZ2Decompressor), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)BZ2Decompressor_dealloc,/* tp_dealloc */
0, /* tp_print */
0, /* tp_vectorcall_offset */
0, /* tp_getattr */
0, /* tp_setattr */
0, /* tp_reserved */
0, /* tp_as_async */
0, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_sequence */
@@ -1620,10 +1620,10 @@ static PyTypeObject deque_type = {
0, /* tp_itemsize */
/* methods */
(destructor)deque_dealloc, /* tp_dealloc */
0, /* tp_print */
0, /* tp_vectorcall_offset */
0, /* tp_getattr */
0, /* tp_setattr */
0, /* tp_reserved */
0, /* tp_as_async */
deque_repr, /* tp_repr */
&deque_as_number, /* tp_as_number */
&deque_as_sequence, /* tp_as_sequence */
@@ -1788,10 +1788,10 @@ static PyTypeObject dequeiter_type = {
0, /* tp_itemsize */
/* methods */
(destructor)dequeiter_dealloc, /* tp_dealloc */
0, /* tp_print */
0, /* tp_vectorcall_offset */
0, /* tp_getattr */
0, /* tp_setattr */
0, /* tp_reserved */
0, /* tp_as_async */
0, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_sequence */
@@ -1910,10 +1910,10 @@ static PyTypeObject dequereviter_type = {
0, /* tp_itemsize */
/* methods */
(destructor)dequeiter_dealloc, /* tp_dealloc */
0, /* tp_print */
0, /* tp_vectorcall_offset */
0, /* tp_getattr */
0, /* tp_setattr */
0, /* tp_reserved */
0, /* tp_as_async */
0, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_sequence */
@@ -2189,10 +2189,10 @@ static PyTypeObject defdict_type = {
0, /* tp_itemsize */
/* methods */
(destructor)defdict_dealloc, /* tp_dealloc */
0, /* tp_print */
0, /* tp_vectorcall_offset */
0, /* tp_getattr */
0, /* tp_setattr */
0, /* tp_reserved */
0, /* tp_as_async */
(reprfunc)defdict_repr, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_sequence */
@@ -2464,10 +2464,10 @@ static PyTypeObject tuplegetter_type = {
0, /* tp_itemsize */
/* methods */
(destructor)tuplegetter_dealloc, /* tp_dealloc */
0, /* tp_print */
0, /* tp_vectorcall_offset */
0, /* tp_getattr */
0, /* tp_setattr */
0, /* tp_reserved */
0, /* tp_as_async */
0, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_sequence */
@@ -469,10 +469,10 @@ static PyTypeObject Dialect_Type = {
0, /* tp_itemsize */
/* methods */
(destructor)Dialect_dealloc, /* tp_dealloc */
(printfunc)0, /* tp_print */
0, /* tp_vectorcall_offset */
(getattrfunc)0, /* tp_getattr */
(setattrfunc)0, /* tp_setattr */
0, /* tp_reserved */
0, /* tp_as_async */
(reprfunc)0, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_sequence */
@@ -902,10 +902,10 @@ static PyTypeObject Reader_Type = {
0, /*tp_itemsize*/
/* methods */
(destructor)Reader_dealloc, /*tp_dealloc*/
(printfunc)0, /*tp_print*/
0, /*tp_vectorcall_offset*/
(getattrfunc)0, /*tp_getattr*/
(setattrfunc)0, /*tp_setattr*/
0, /*tp_reserved*/
0, /*tp_as_async*/
(reprfunc)0, /*tp_repr*/
0, /*tp_as_number*/
0, /*tp_as_sequence*/
@@ -1332,10 +1332,10 @@ static PyTypeObject Writer_Type = {
0, /*tp_itemsize*/
/* methods */
(destructor)Writer_dealloc, /*tp_dealloc*/
(printfunc)0, /*tp_print*/
0, /*tp_vectorcall_offset*/
(getattrfunc)0, /*tp_getattr*/
(setattrfunc)0, /*tp_setattr*/
0, /*tp_reserved*/
0, /*tp_as_async*/
(reprfunc)0, /*tp_repr*/
0, /*tp_as_number*/
0, /*tp_as_sequence*/

0 comments on commit 530f506

Please sign in to comment.
You can’t perform that action at this time.