FSX/houdini.py — pull request #4 by ArchangelSDY (2013-07-30 12:59:45+00:00)
Title: Add support for Python 2.X

There are no `PyUnicode_AsUTF8` and `PyUnicode_FromStringAndSize` in Python 2.x. Instead, we should use `PyString_AsString` and `PyString_FromStringAndSize`.

The patch has been tested by comparing results of `houdini.escape_html('

哈

')` in Python 2.7 and Python 3.3.