Skip to content

Commit 39f474c

Browse files
committed
1 parent 185f38b commit 39f474c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Formula/p/[email protected]

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class PythonTkAT313 < Formula
22
desc "Python interface to Tcl/Tk"
33
homepage "https://www.python.org/"
4-
url "https://www.python.org/ftp/python/3.13.1/Python-3.13.1.tgz"
5-
sha256 "1513925a9f255ef0793dbf2f78bb4533c9f184bdd0ad19763fd7f47a400a7c55"
4+
url "https://www.python.org/ftp/python/3.13.2/Python-3.13.2.tgz"
5+
sha256 "b8d79530e3b7c96a5cb2d40d431ddb512af4a563e863728d8713039aa50203f9"
66
license "Python-2.0"
77

88
livecheck do
@@ -85,11 +85,11 @@ def install
8585
@@ -321,6 +321,8 @@ def _tclobj_to_py(val):
8686
elif hasattr(val, 'typename'): # some other (single) Tcl object
8787
val = _convert_stringval(val)
88-
88+
8989
+ if isinstance(val, tuple) and len(val) == 0:
9090
+ return ''
9191
return val
92-
92+
9393
def tclobjs_to_py(adict):
9494
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
9595
index b0b70ccb8cc3d3..45897817a56051 100644
@@ -101,19 +101,19 @@ def tclobjs_to_py(adict):
101101
const Tcl_ObjType *UTF32StringType;
102102
+ const Tcl_ObjType *PixelType;
103103
} TkappObject;
104-
104+
105105
#define Tkapp_Interp(v) (((TkappObject *) (v))->interp)
106106
@@ -637,6 +638,7 @@ Tkapp_New(const char *screenName, const char *className,
107107
v->ListType = Tcl_GetObjType("list");
108108
v->StringType = Tcl_GetObjType("string");
109109
v->UTF32StringType = Tcl_GetObjType("utf32string");
110110
+ v->PixelType = Tcl_GetObjType("pixel");
111-
111+
112112
/* Delete the 'exit' command, which can screw things up */
113113
Tcl_DeleteCommand(v->interp, "exit");
114114
@@ -1236,7 +1238,8 @@ FromObj(TkappObject *tkapp, Tcl_Obj *value)
115115
}
116-
116+
117117
if (value->typePtr == tkapp->StringType ||
118118
- value->typePtr == tkapp->UTF32StringType)
119119
+ value->typePtr == tkapp->UTF32StringType ||

0 commit comments

Comments
 (0)