Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c1a90e

Browse files
committed
Remove deprecated Python checks from macosx source.
1 parent a8c9697 commit 5c1a90e

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/_macosx.m

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,6 @@
1111
#define PY3K 0
1212
#endif
1313

14-
#if (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >=3)
15-
#define PY33 1
16-
#else
17-
#define PY33 0
18-
#endif
19-
20-
/* Must define Py_TYPE for Python 2.5 or older */
21-
#ifndef Py_TYPE
22-
# define Py_TYPE(o) ((o)->ob_type)
23-
#endif
24-
2514
/* Proper way to check for the OS X version we are compiling for, from
2615
http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development */
2716
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
@@ -1896,7 +1885,7 @@ -(void)save_figure:(id)sender
18961885
unsigned int n = [filename length];
18971886
unichar* buffer = malloc(n*sizeof(unichar));
18981887
[filename getCharacters: buffer];
1899-
#if PY33
1888+
#if PY3K
19001889
PyObject* string = PyUnicode_FromKindAndData(PyUnicode_2BYTE_KIND, buffer, n);
19011890
#else
19021891
PyObject* string = PyUnicode_FromUnicode(buffer, n);

0 commit comments

Comments
 (0)