cython/cython — pull request #149 by Talanor (2012-09-05 14:59:17+00:00)
Title: Fix errors from "invalid" doc strings

I've fixed the error given when a presumed docstring do not end with a NEWLINE or a EOF character.
(I've mentionned it in the cython-users mailing list)

for example, a file, or a function, beginning by:

''.join([])

would raise an error in cython, because it tries to assign it as the doc string for the related module/function.

Cpython would just assign None as the doc string and execute the code as it is not a doc string.

I don't know if the way I did it is the cleanest/fastest way. I just read some cython's code today, did this, and it seems to work properly. So feel free to criticize this fix.

Thank you.