Skip to content

Commit 29b10db

Browse files
Other fixes and cleanup.
1 parent 452420f commit 29b10db

File tree

6 files changed

+3
-9
lines changed

6 files changed

+3
-9
lines changed

Modules/_cursesmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static const char PyCursesVersion[] = "2.2";
109109
#include "Python.h"
110110
#include "pycore_long.h" // _PyLong_GetZero()
111111
#include "pycore_structseq.h" // _PyStructSequence_NewType()
112-
#include "pycore_sysmodule.h" // _PySys_GetOptionalAttrString()
112+
#include "pycore_sysmodule.h" // _PySys_GetOptionalAttrString()
113113

114114
#ifdef __hpux
115115
#define STRICT_SYSV_CURSES

Modules/_pickle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "pycore_moduleobject.h" // _PyModule_GetState()
1414
#include "pycore_runtime.h" // _Py_ID()
1515
#include "pycore_pystate.h" // _PyThreadState_GET()
16-
#include "pycore_sysmodule.h" // _PySys_GetSizeOf()
16+
#include "pycore_sysmodule.h" // _PySys_GetRequiredAttr()
1717
#include "structmember.h" // PyMemberDef
1818

1919
#include <stdlib.h> // strtol()

Modules/_tkinter.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ _get_tcl_lib_path(void)
146146
PyObject *prefix;
147147
struct stat stat_buf;
148148
int stat_return_value;
149-
PyObject *prefix;
150149

151150
prefix = PyUnicode_FromWideChar(Py_GetPrefix(), -1);
152151
if (prefix == NULL) {
@@ -3553,10 +3552,6 @@ PyInit__tkinter(void)
35533552
#endif /* MS_WINDOWS */
35543553
}
35553554
Py_XDECREF(cexe);
3556-
Py_DECREF(uexe);
3557-
}
3558-
else {
3559-
Py_XDECREF(uexe);
35603555
}
35613556

35623557
if (PyErr_Occurred()) {

Objects/moduleobject.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "pycore_pystate.h" // _PyInterpreterState_GET()
99
#include "pycore_moduleobject.h" // _PyModule_GetDef()
1010
#include "structmember.h" // PyMemberDef
11-
#include "pycore_sysmodule.h" // _PySys_GetOptionalAttrString()
1211

1312

1413
static PyMemberDef module_members[] = {

Python/ceval.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "pycore_tuple.h" // _PyTuple_ITEMS()
2525
#include "pycore_typeobject.h" // _PySuper_Lookup()
2626
#include "pycore_emscripten_signal.h" // _Py_CHECK_EMSCRIPTEN_SIGNALS
27-
#include "pycore_sysmodule.h" // _PySys_GetOptionalAttrString()
2827

2928
#include "pycore_dict.h"
3029
#include "dictobject.h"

Python/sysmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Data members:
2929
#include "pycore_pymem.h" // _PyMem_SetDefaultAllocator()
3030
#include "pycore_pystate.h" // _PyThreadState_GET()
3131
#include "pycore_structseq.h" // _PyStructSequence_InitBuiltinWithFlags()
32+
#include "pycore_sysmodule.h"
3233
#include "pycore_tuple.h" // _PyTuple_FromArray()
3334

3435
#include "frameobject.h" // PyFrame_FastToLocalsWithError()

0 commit comments

Comments
 (0)