Ignore:
Timestamp:
12/29/08 18:21:43 (6 years ago)
Author:
xi
Message:

Use Cython if available; added Python 3 support to _yaml.pyx.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/ext/_yaml.h

    r205 r331  
    22#include <yaml.h> 
    33 
     4#if PY_MAJOR_VERSION >= 3 
     5 
     6#define PyString_CheckExact PyBytes_CheckExact 
     7#define PyString_AS_STRING  PyBytes_AS_STRING 
     8#define PyString_GET_SIZE   PyBytes_GET_SIZE 
     9#define PyString_FromStringAndSize  PyBytes_FromStringAndSize 
     10 
     11#endif 
Note: See TracChangeset for help on using the changeset viewer.