diff configmix/_speedups.c @ 553:9d2bd411f5c5

Do not rstrip() the remaining variable name when parsing out filters from variable names
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 02 Jan 2022 20:43:24 +0100
parents 39e5d07d8dbc
children 36d7aa000435
line wrap: on
line diff
--- a/configmix/_speedups.c	Sun Jan 02 20:40:09 2022 +0100
+++ b/configmix/_speedups.c	Sun Jan 02 20:43:24 2022 +0100
@@ -559,12 +559,6 @@
     if (name == NULL) {
         goto error;
     }
-    tmp = PyObject_CallMethod(name, "rstrip", NULL);
-    if (tmp == NULL) {
-        goto error;
-    }
-    Py_DECREF(name);
-    name = tmp;
 
     filters = PyUnicode_Substring(varname, sep+1, varname_len);
     if (filters == NULL) {