Skip to content

Commit a01e63e

Browse files
authored
Remove support for Python 2.7 on Windows (#68)
Mercurial 6.2 released in July 2022 removed support for Python 2.7. It was the last project using pythoncapi_compat.h which required Python 2.7 support (on Windows). Remove PYCAPI_COMPAT_STATIC_INLINE() macro: use "static inline" directly. See: * https://www.mercurial-scm.org/downloads * https://wiki.mercurial-scm.org/SupportedPythonVersions
1 parent 47c0656 commit a01e63e

File tree

3 files changed

+53
-102
lines changed

3 files changed

+53
-102
lines changed

docs/api.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ C++03 and C++11 are supported on Python 3.6 and newer.
1818

1919
A C99 subset is required, like ``static inline`` functions: see `PEP 7
2020
<https://www.python.org/dev/peps/pep-0007/>`_. ISO C90 is partially supported
21-
for Python 2.7 and Visual Studio 2008 (avoid mixed declarations and code, ``gcc
22-
-Werror=declaration-after-statement``).
21+
for Python 2.7.
2322

2423
Some functions related to frame objects and ``PyThreadState`` are not available
2524
on PyPy.

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Changelog
22
=========
33

4+
* 2023-08-21: Remove support for Python 2.7, Python 3.4 and older.
45
* 2023-08-16: Add ``Py_IsFinalizing()`` function.
56
* 2023-07-21: Add ``PyDict_GetItemRef()`` function.
67
* 2023-07-18: Add ``PyModule_Add()`` function.

0 commit comments

Comments
 (0)