diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2016-03-22 23:37:41 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2016-03-22 23:37:41 +0100 |
commit | 29c1030e0aadfdd8076442ad5a79eb8c8dbd54b6 (patch) | |
tree | 2f58a75aa991acf956d2ed66eb9f2fc5ad56ca1a /Cython/Utility/ModuleSetupCode.c | |
parent | 0d7af3471cc372a47aca75a9721404030ffbb388 (diff) | |
download | cython-29c1030e0aadfdd8076442ad5a79eb8c8dbd54b6.tar.gz |
simplify code generated for f-string formatting using simple utility functions
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index 427137f15..3961ce65c 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -123,7 +123,6 @@ #define PyObject_Realloc(p) PyMem_Realloc(p) #endif -#define __Pyx_PyObject_FormatSimple(s, f) (likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) : PyObject_Format(s, f)) #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)) #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b)) |