]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103735: Tkinter: remove handling for uninteresting "procbody" Tcl value type ...
authorChristopher Chavez <chrischavez@gmx.us>
Wed, 26 Jul 2023 09:11:50 +0000 (04:11 -0500)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2023 09:11:50 +0000 (12:11 +0300)
Modules/_tkinter.c

index 145a2940427e6e81a7892f1d4ac7453135f8892a..406e01cd75ffd702ecfc2b391c84599f49524932 100644 (file)
@@ -317,7 +317,6 @@ typedef struct {
     const Tcl_ObjType *WideIntType;
     const Tcl_ObjType *BignumType;
     const Tcl_ObjType *ListType;
-    const Tcl_ObjType *ProcBodyType;
     const Tcl_ObjType *StringType;
 } TkappObject;
 
@@ -595,7 +594,6 @@ Tkapp_New(const char *screenName, const char *className,
     v->WideIntType = Tcl_GetObjType("wideInt");
     v->BignumType = Tcl_GetObjType("bignum");
     v->ListType = Tcl_GetObjType("list");
-    v->ProcBodyType = Tcl_GetObjType("procbody");
     v->StringType = Tcl_GetObjType("string");
 
     /* Delete the 'exit' command, which can screw things up */
@@ -1175,10 +1173,6 @@ FromObj(TkappObject *tkapp, Tcl_Obj *value)
         return result;
     }
 
-    if (value->typePtr == tkapp->ProcBodyType) {
-      /* fall through: return tcl object. */
-    }
-
     if (value->typePtr == tkapp->StringType) {
         return unicodeFromTclObj(value);
     }