[Python-checkins] cpython: Revert (unauthorized) parts of b9eb35435178 which are not in a speed-sensitive

stefan.krah python-checkins at python.org
Sat Jan 7 17:20:53 EST 2017


https://hg.python.org/cpython/rev/5f847fca5c6e
changeset:   106028:5f847fca5c6e
user:        Stefan Krah <skrah at bytereef.org>
date:        Sat Jan 07 23:20:27 2017 +0100
summary:
  Revert (unauthorized) parts of b9eb35435178 which are not in a speed-sensitive
path and cause maintenance issues (3.6 <-> 3.7, private test suite).

files:
  Modules/_decimal/_decimal.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c
--- a/Modules/_decimal/_decimal.c
+++ b/Modules/_decimal/_decimal.c
@@ -5716,7 +5716,7 @@
     /* DecimalTuple */
     ASSIGN_PTR(collections, PyImport_ImportModule("collections"));
     ASSIGN_PTR(DecimalTuple, (PyTypeObject *)PyObject_CallMethod(collections,
-                                 "namedtuple", "ss", "DecimalTuple",
+                                 "namedtuple", "(ss)", "DecimalTuple",
                                  "sign digits exponent"));
 
     ASSIGN_PTR(obj, PyUnicode_FromString("decimal"));

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list