From: Dag Sverre Seljebotn Date: Fri, 30 May 2008 09:49:14 +0000 (+0200) Subject: Fixed bug related to embedding SourceDescriptor position in docstring X-Git-Tag: 0.9.8rc1~11^2~10^2~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=777cc18459d65d14a7cafee09d7d05c3b84b4e80;p=cython.git Fixed bug related to embedding SourceDescriptor position in docstring --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index b29529ea..bd47d627 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -39,7 +39,7 @@ def relative_position(pos): global absolute_path_length if absolute_path_length==0: absolute_path_length = len(os.path.abspath(os.getcwd())) - return (pos[0][absolute_path_length+1:], pos[1]) + return (pos[0].get_filenametable_entry()[absolute_path_length+1:], pos[1]) def embed_position(pos, docstring): if not Options.embed_pos_in_docstring: