Ignore:
Timestamp:
Feb 8, 2010 9:41:59 AM (4 years ago)
Author:
pterjan
Message:

Support python 2.6, and ask for 2.4 as it is accepted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/python/interpreter.c

    r4165 r4336  
    4242static char *getPythonError(void); 
    4343 
    44 #if defined HAVE_PYTHON2 
     44#if ! defined HAVE_PYTHON26 
    4545static PyObject *PyUnicode_FromString(char const *str) 
    4646{ 
     
    188188    PyObject *str = PyObject_Repr(p); 
    189189    char *tmp; 
    190 #if defined HAVE_PYTHON3 
     190#if defined HAVE_PYTHON26 
    191191    tmp = PyBytes_AS_STRING(PyUnicode_AsEncodedString(str, "utf-8", "Error ~")); 
    192 #elif defined HAVE_PYTHON2 
     192#else 
    193193    tmp = PyString_AsString(str); 
    194194#endif 
Note: See TracChangeset for help on using the changeset viewer.