From 777cc18459d65d14a7cafee09d7d05c3b84b4e80 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Fri, 30 May 2008 11:49:14 +0200 Subject: [PATCH] Fixed bug related to embedding SourceDescriptor position in docstring --- Cython/Compiler/Nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2