Fixed bug related to embedding SourceDescriptor position in docstring
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Fri, 30 May 2008 09:49:14 +0000 (11:49 +0200)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Fri, 30 May 2008 09:49:14 +0000 (11:49 +0200)
Cython/Compiler/Nodes.py

index b29529ea609a21a11f946bea07fc8920eccf0ca4..bd47d6272f921c58455b5cd6ad456b24f9a034f5 100644 (file)
@@ -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: