Ignore:
Timestamp:
12/30/08 08:30:52 (5 years ago)
Author:
xi
Message:

Fixed str/bytes issues with Python 3 in _yaml.pyx.

File:
1 edited

Legend:

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

    r331 r334  
    22#include <yaml.h> 
    33 
    4 #if PY_MAJOR_VERSION >= 3 
     4#if PY_MAJOR_VERSION < 3 
     5 
     6#define PyUnicode_FromString(s) PyUnicode_DecodeUTF8((s), strlen(s), 'strict') 
     7 
     8#else 
    59 
    610#define PyString_CheckExact PyBytes_CheckExact 
Note: See TracChangeset for help on using the changeset viewer.