]> granicus.if.org Git - python/commitdiff
Revert (unauthorized) parts of b9eb35435178 which are not in a speed-sensitive
authorStefan Krah <skrah@bytereef.org>
Sat, 7 Jan 2017 22:20:27 +0000 (23:20 +0100)
committerStefan Krah <skrah@bytereef.org>
Sat, 7 Jan 2017 22:20:27 +0000 (23:20 +0100)
path and cause maintenance issues (3.6 <-> 3.7, private test suite).

Modules/_decimal/_decimal.c

index feaef2e8760f7e8de0417f39e6e99db007897e2c..7dd1eab655bc029c4abbf6ce42f5e57290f9934f 100644 (file)
@@ -5716,7 +5716,7 @@ PyInit__decimal(void)
     /* 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"));