~ubuntu-branches/ubuntu/saucy/python2.7/saucy-updates

« back to all changes in this revision

Viewing changes to Mac/Modules/fm/_Fmmodule.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-03-23 19:56:03 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20130323195603-ftu05fam0tvkpkro
Tags: 2.7.4~rc1-0ubuntu1
* Python 2.7.4 release candidate 1.
  - Issue #10211: Buffer objects expose the new buffer interface internally.
  - Issue #10212: cStringIO and struct.unpack support new buffer objects.
  - Issue #12098: multiprocessing on Windows now starts child processes
    using the same sys.flags as the current process.
  - Issue #8862: Fixed curses cleanup when getkey is interrputed by a signal.
  - Issue #9090: When a socket with a timeout fails with EWOULDBLOCK or
    EAGAIN, retry the select() loop instead of bailing out.
  - Issue #1285086: Get rid of the refcounting hack and speed up
    urllib.unquote().
  - Issue #17368: Fix an off-by-one error in the Python JSON decoder
    that caused a failure while decoding empty object literals when
    object_pairs_hook was specified.
  - Issue #17477: Update the bsddb module to pybsddb 5.3.0, supporting
    db-5.x, and dropping support for db-4.1 and db-4.2.
  - Issue #17192: Update the ctypes module's libffi to v3.0.13.  This
    specifically addresses a stack misalignment issue on x86 and issues on
    some more recent platforms.
  - Issue #11420: make test suite pass with -B/DONTWRITEBYTECODE set.
  - Issue #17299: Add test coverage for cPickle with file objects
    and general IO objects.
  - Issue #11963: remove human verification from test_parser and
    test_subprocess.
  - Issue #16004: Add `make touch`.
  - Issue #17047: remove doubled words in docs and docstrings
* Rework the sysconfigdata patch into something upstreamable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/* =========================== Module _Fm =========================== */
3
3
 
4
4
#include "Python.h"
 
5
#include <Carbon/Carbon.h>
5
6
 
6
 
#ifndef __LP64__
 
7
#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7)
7
8
 
8
9
 
9
10
#include "pymactoolbox.h"
16
17
    }} while(0)
17
18
 
18
19
 
19
 
#include <Carbon/Carbon.h>
20
20
 
21
21
 
22
22
/*
347
347
void init_Fm(void)
348
348
{
349
349
    PyObject *m;
350
 
#ifndef __LP64__
 
350
#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7)
351
351
    PyObject *d;
352
352
#endif  /* __LP64__ */
353
353
 
355
355
 
356
356
 
357
357
    m = Py_InitModule("_Fm", Fm_methods);
358
 
#ifndef __LP64__
 
358
#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7)
359
359
    d = PyModule_GetDict(m);
360
360
    Fm_Error = PyMac_GetOSErrException();
361
361
    if (Fm_Error == NULL ||