Merge lp:~jelmer/brz/drop-old-compat into lp:brz

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: no longer in the source branch.
Merge reported by: The Breezy Bot
Merged at revision: not available
Proposed branch: lp:~jelmer/brz/drop-old-compat
Merge into: lp:brz
Diff against target: 35 lines (+0/-20)
1 file modified
breezy/python-compat.h (+0/-20)
To merge this branch: bzr merge lp:~jelmer/brz/drop-old-compat
Reviewer Review Type Date Requested Status
Martin Packman Approve
Review via email: mp+325131@code.launchpad.net

Commit message

Drop pyx support for python < 2.7.

Description of the change

Drop pyx support for python < 2.7.

To post a comment you must log in.
Revision history for this message
Martin Packman (gz) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'breezy/python-compat.h'
--- breezy/python-compat.h 2010-08-23 21:36:06 +0000
+++ breezy/python-compat.h 2017-06-06 00:00:56 +0000
@@ -25,18 +25,6 @@
25#ifndef _BZR_PYTHON_COMPAT_H25#ifndef _BZR_PYTHON_COMPAT_H
26#define _BZR_PYTHON_COMPAT_H26#define _BZR_PYTHON_COMPAT_H
2727
28/* http://www.python.org/dev/peps/pep-0353/ */
29#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
30 typedef int Py_ssize_t;
31 typedef Py_ssize_t (*lenfunc)(PyObject *);
32 typedef PyObject * (*ssizeargfunc)(PyObject *, Py_ssize_t);
33 typedef PyObject * (*ssizessizeargfunc)(PyObject *, Py_ssize_t, Py_ssize_t);
34 #define PY_SSIZE_T_MAX INT_MAX
35 #define PY_SSIZE_T_MIN INT_MIN
36 #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
37 #define PyInt_AsSsize_t(o) PyInt_AsLong(o)
38#endif
39
40#if defined(_WIN32) || defined(WIN32)28#if defined(_WIN32) || defined(WIN32)
41 /* Defining WIN32_LEAN_AND_MEAN makes including windows quite a bit29 /* Defining WIN32_LEAN_AND_MEAN makes including windows quite a bit
42 * lighter weight.30 * lighter weight.
@@ -79,12 +67,4 @@
79#define strtoull _strtoui6467#define strtoull _strtoui64
80#endif68#endif
8169
82/* Introduced in Python 2.6 */
83#ifndef Py_TYPE
84# define Py_TYPE(o) ((o)->ob_type)
85#endif
86#ifndef Py_REFCNT
87# define Py_REFCNT(o) ((o)->ob_refcnt)
88#endif
89
90#endif /* _BZR_PYTHON_COMPAT_H */70#endif /* _BZR_PYTHON_COMPAT_H */

Subscribers

People subscribed via source and target branches