Bugfix in __repr__ of SourceDescriptors
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Fri, 30 May 2008 08:22:23 +0000 (10:22 +0200)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Fri, 30 May 2008 08:22:23 +0000 (10:22 +0200)
Cython/Compiler/Scanning.py

index 6a39639f2e8b3a55dce915e8ac12d596b031237b..6aacb8faf263a30816d28908550dbb18fc4e46dc 100644 (file)
@@ -238,7 +238,7 @@ class FileSourceDescriptor(SourceDescriptor):
         return self.filename
     
     def __repr__(self):
-        return "<FileSourceDescriptor:%s>" % self
+        return "<FileSourceDescriptor:%s>" % self.filename
 
 class StringSourceDescriptor(SourceDescriptor):
     """
@@ -259,7 +259,7 @@ class StringSourceDescriptor(SourceDescriptor):
         return "stringsource"
 
     def __repr__(self):
-        return "<StringSourceDescriptor:%s>" % self
+        return "<StringSourceDescriptor:%s>" % self.name
 
 #------------------------------------------------------------------