Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 593faa0

Browse filesBrowse files
committed
MNT: account for cpython deprecations
The # variants the PyArg formats will raise deprecation warnings in py38. https://bugs.python.org/issue8677 https://bugs.python.org/issue36381 python/cpython#12473 python/cpython@d3c72a2
1 parent c94d0ed commit 593faa0
Copy full SHA for 593faa0

File tree

Expand file treeCollapse file tree

10 files changed

+10
-7
lines changed
Filter options
Expand file treeCollapse file tree

10 files changed

+10
-7
lines changed

‎src/_macosx.m

Copy file name to clipboardExpand all lines: src/_macosx.m
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#define PY_SSIZE_T_CLEAN
12
#include <Cocoa/Cocoa.h>
23
#include <ApplicationServices/ApplicationServices.h>
34
#include <sys/socket.h>

‎src/_png.cpp

Copy file name to clipboardExpand all lines: src/_png.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Undefining _POSIX_C_SOURCE and _XOPEN_SOURCE stops a couple
1010
of harmless warnings.
1111
*/
12-
12+
#define PY_SSIZE_T_CLEAN
1313

1414
extern "C" {
1515
# include <png.h>

‎src/_tkagg.cpp

Copy file name to clipboardExpand all lines: src/_tkagg.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* See LICENSE/LICENSE.PIL for details.
88
*
99
*/
10-
10+
#define PY_SSIZE_T_CLEAN
1111
#include <Python.h>
1212
#include <cstdlib>
1313
#include <cstdio>

‎src/_ttconv.cpp

Copy file name to clipboardExpand all lines: src/_ttconv.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Python wrapper for TrueType conversion library in ../ttconv.
77
*/
8-
8+
#define PY_SSIZE_T_CLEAN
99
#include "mplutils.h"
1010

1111
#include <Python.h>

‎src/file_compat.h

Copy file name to clipboardExpand all lines: src/file_compat.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef MPL_FILE_COMPAT_H
22
#define MPL_FILE_COMPAT_H
3-
3+
#define PY_SSIZE_T_CLEAN
44
#include <Python.h>
55
#include <stdio.h>
66
#include "numpy/npy_common.h"

‎src/mplutils.h

Copy file name to clipboardExpand all lines: src/mplutils.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#ifndef MPLUTILS_H
66
#define MPLUTILS_H
7+
#define PY_SSIZE_T_CLEAN
78

89
#include <stdint.h>
910

‎src/numpy_cpp.h

Copy file name to clipboardExpand all lines: src/numpy_cpp.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#ifndef MPL_NUMPY_CPP_H
44
#define MPL_NUMPY_CPP_H
5-
5+
#define PY_SSIZE_T_CLEAN
66
/***************************************************************************
77
* This file is based on original work by Mark Wiebe, available at:
88
*

‎src/py_adaptors.h

Copy file name to clipboardExpand all lines: src/py_adaptors.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#ifndef MPL_PY_ADAPTORS_H
44
#define MPL_PY_ADAPTORS_H
5-
5+
#define PY_SSIZE_T_CLEAN
66
/***************************************************************************
77
* This module contains a number of C++ classes that adapt Python data
88
* structures to C++ and Agg-friendly interfaces.

‎src/py_converters.cpp

Copy file name to clipboardExpand all lines: src/py_converters.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define NO_IMPORT_ARRAY
2-
2+
#define PY_SSIZE_T_CLEAN
33
#include "py_converters.h"
44
#include "numpy_cpp.h"
55

‎src/qhull_wrap.c

Copy file name to clipboardExpand all lines: src/qhull_wrap.c
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* triangulation, construct an instance of the matplotlib.tri.Triangulation
66
* class without specifying a triangles array.
77
*/
8+
#define PY_SSIZE_T_CLEAN
89
#include "Python.h"
910
#include "numpy/ndarrayobject.h"
1011
#include "libqhull/qhull_a.h"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.