From: Dag Sverre Seljebotn Date: Fri, 30 May 2008 08:22:23 +0000 (+0200) Subject: Bugfix in __repr__ of SourceDescriptors X-Git-Tag: 0.9.8rc1~11^2~10^2~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4e70c07a9a6fd5f56f6d1482134d936f4d3046b0;p=cython.git Bugfix in __repr__ of SourceDescriptors --- diff --git a/Cython/Compiler/Scanning.py b/Cython/Compiler/Scanning.py index 6a39639f..6aacb8fa 100644 --- a/Cython/Compiler/Scanning.py +++ b/Cython/Compiler/Scanning.py @@ -238,7 +238,7 @@ class FileSourceDescriptor(SourceDescriptor): return self.filename def __repr__(self): - return "" % self + return "" % self.filename class StringSourceDescriptor(SourceDescriptor): """ @@ -259,7 +259,7 @@ class StringSourceDescriptor(SourceDescriptor): return "stringsource" def __repr__(self): - return "" % self + return "" % self.name #------------------------------------------------------------------