Skip to content

Commit c2da994

Browse files
author
Thomas Heller
committed
Add pep-291 compatibility markers.
1 parent f608317 commit c2da994

17 files changed

Lines changed: 61 additions & 2 deletions

Lib/ctypes/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
######################################################################
2+
# This file should be kept compatible with Python 2.3, see PEP 291. #
3+
######################################################################
14
"""create and manipulate C data types in Python"""
25

36
import os as _os, sys as _sys

Lib/ctypes/_endian.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
######################################################################
2+
# This file should be kept compatible with Python 2.3, see PEP 291. #
3+
######################################################################
14
import sys
25
from ctypes import *
36

Lib/ctypes/macholib/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
######################################################################
2+
# This file should be kept compatible with Python 2.3, see PEP 291. #
3+
######################################################################
14
"""
25
Enough Mach-O to make your head spin.
36

Lib/ctypes/macholib/dyld.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
######################################################################
2+
# This file should be kept compatible with Python 2.3, see PEP 291. #
3+
######################################################################
14
"""
25
dyld emulation
36
"""

Lib/ctypes/macholib/dylib.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
######################################################################
2+
# This file should be kept compatible with Python 2.3, see PEP 291. #
3+
######################################################################
14
"""
25
Generic dylib path manipulation
36
"""

Lib/ctypes/macholib/framework.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
######################################################################
2+
# This file should be kept compatible with Python 2.3, see PEP 291. #
3+
######################################################################
14
"""
25
Generic framework path manipulation
36
"""

Lib/ctypes/util.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
######################################################################
2+
# This file should be kept compatible with Python 2.3, see PEP 291. #
3+
######################################################################
14
import sys, os
25

36
# find_library(name) returns the pathname of a library, or None.

Lib/ctypes/wintypes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
######################################################################
2+
# This file should be kept compatible with Python 2.3, see PEP 291. #
3+
######################################################################
14
# XXX This module needs cleanup.
25

36
from ctypes import *

Modules/_ctypes/_ctypes.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*****************************************************************
2+
This file should be kept compatible with Python 2.3, see PEP 291.
3+
*****************************************************************/
4+
5+
16
/*
27
ToDo:
38

Modules/_ctypes/_ctypes_test.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*****************************************************************
2+
This file should be kept compatible with Python 2.3, see PEP 291.
3+
*****************************************************************/
4+
5+
16
#include <Python.h>
27

38
/*

0 commit comments

Comments
 (0)