Menu

#13 Make compatible with Python 2.4

open-fixed
nobody
5
2012-08-05
2011-03-18
Tim Yates
No

Mark Liffiton had this message:

"There's a line in lang-support/python2/wmr/common.py that calls partition() on a string, and that function was only created in Python 2.5. CentOS uses Python 2.4, so that line fails. I've replaced the line in my install with the following, which should be equivalent (please let me know if I've missed something) and more broadly compatible:

line = line.rstrip('\n')
return (line[:line.find(separator)], line[line.find(separator)+1:])"

This is an easy fix. We might also consider testing the whole frontend on Python 2.4. It should be possible to support (Django still does as of v1.2), but would require removing the use of some features like "with" statements.

Discussion

  • Stephen Lee

    Stephen Lee - 2012-08-05

    I fixed the specific error, but did not test the frontend with Python 2.4 (yes

     
  • Stephen Lee

    Stephen Lee - 2012-08-05
    • status: open --> open-fixed
     

Log in to post a comment.