diff options
author | Jeroen Demeyer <jeroen.k.demeyer@gmail.com> | 2019-08-09 22:17:29 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-08-21 20:41:23 +0200 |
commit | 4d79003f64cb7b6366d5f3d02910a803a3372e36 (patch) | |
tree | 14c15c5323a861b46828bdc42b85666215c87567 | |
parent | d4610f39a43a658cee1862c899a9696d8a9c9f5f (diff) | |
download | cython-4d79003f64cb7b6366d5f3d02910a803a3372e36.tar.gz |
Fix PY_HEX_VERSION -> PY_VERSION_HEX (GH-3071)
-rw-r--r-- | CHANGES.rst | 2 | ||||
-rw-r--r-- | Cython/Utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 97cb89c35..412f7a2e9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -360,7 +360,7 @@ Features added In this case, it is also automatically mapped to ``%r`` in Python 2.x. * New C macro ``CYTHON_HEX_VERSION`` to access Cython's version in the same style as - ``PY_HEX_VERSION``. + ``PY_VERSION_HEX``. * Constants in ``libc.math`` are now declared as ``const`` to simplify their handling. diff --git a/Cython/Utils.py b/Cython/Utils.py index 380ad4a25..83b2988d2 100644 --- a/Cython/Utils.py +++ b/Cython/Utils.py @@ -442,7 +442,7 @@ def raise_error_if_module_name_forbidden(full_module_name): def build_hex_version(version_string): """ - Parse and translate '4.3a1' into the readable hex representation '0x040300A1' (like PY_HEX_VERSION). + Parse and translate '4.3a1' into the readable hex representation '0x040300A1' (like PY_VERSION_HEX). """ # First, parse '4.12a1' into [4, 12, 0, 0xA01]. digits = [] |