From 4e70c07a9a6fd5f56f6d1482134d936f4d3046b0 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Fri, 30 May 2008 10:22:23 +0200 Subject: [PATCH] Bugfix in __repr__ of SourceDescriptors --- Cython/Compiler/Scanning.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 #------------------------------------------------------------------ -- 2.26.2