Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3fc2ca3

Browse files
committed
Merge trunk up to 45598.
1 parent 49fd7fa commit 3fc2ca3

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

Objects/typeobject.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4183,10 +4183,10 @@ slot_sq_ass_item(PyObject *self, Py_ssize_t index, PyObject *value)
41834183

41844184
if (value == NULL)
41854185
res = call_method(self, "__delitem__", &delitem_str,
4186-
"(i)", index);
4186+
"(n)", index);
41874187
else
41884188
res = call_method(self, "__setitem__", &setitem_str,
4189-
"(iO)", index, value);
4189+
"(nO)", index, value);
41904190
if (res == NULL)
41914191
return -1;
41924192
Py_DECREF(res);
@@ -4201,10 +4201,10 @@ slot_sq_ass_slice(PyObject *self, Py_ssize_t i, Py_ssize_t j, PyObject *value)
42014201

42024202
if (value == NULL)
42034203
res = call_method(self, "__delslice__", &delslice_str,
4204-
"(ii)", i, j);
4204+
"(nn)", i, j);
42054205
else
42064206
res = call_method(self, "__setslice__", &setslice_str,
4207-
"(iiO)", i, j, value);
4207+
"(nnO)", i, j, value);
42084208
if (res == NULL)
42094209
return -1;
42104210
Py_DECREF(res);

Tools/msi/msi.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,12 @@ def add_files(db):
908908
if files:
909909
# Add an entry to the RemoveFile table to remove bytecode files.
910910
lib.remove_pyc()
911+
if dir.endswith('.egg-info'):
912+
lib.add_file('entry_points.txt')
913+
lib.add_file('PKG-INFO')
914+
lib.add_file('top_level.txt')
915+
lib.add_file('zip-safe')
916+
continue
911917
if dir=='test' and parent.physical=='Lib':
912918
lib.add_file("185test.db")
913919
lib.add_file("audiotest.au")
@@ -930,9 +936,12 @@ def add_files(db):
930936
if dir=="Icons":
931937
lib.glob("*.gif")
932938
lib.add_file("idle.icns")
933-
if dir=="command":
939+
if dir=="command" and parent.physical=="distutils":
934940
lib.add_file("wininst-6.exe")
935941
lib.add_file("wininst-7.1.exe")
942+
if dir=="setuptools":
943+
lib.add_file("cli.exe")
944+
lib.add_file("gui.exe")
936945
if dir=="data" and parent.physical=="test" and parent.basedir.physical=="email":
937946
# This should contain all non-.svn files listed in subversion
938947
for f in os.listdir(lib.absolute):

0 commit comments

Comments
 (0)