Commit 4e70c07a authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Bugfix in __repr__ of SourceDescriptors

parent 9498a6e4
...@@ -238,7 +238,7 @@ class FileSourceDescriptor(SourceDescriptor): ...@@ -238,7 +238,7 @@ class FileSourceDescriptor(SourceDescriptor):
return self.filename return self.filename
def __repr__(self): def __repr__(self):
return "<FileSourceDescriptor:%s>" % self return "<FileSourceDescriptor:%s>" % self.filename
class StringSourceDescriptor(SourceDescriptor): class StringSourceDescriptor(SourceDescriptor):
""" """
...@@ -259,7 +259,7 @@ class StringSourceDescriptor(SourceDescriptor): ...@@ -259,7 +259,7 @@ class StringSourceDescriptor(SourceDescriptor):
return "stringsource" return "stringsource"
def __repr__(self): def __repr__(self):
return "<StringSourceDescriptor:%s>" % self return "<StringSourceDescriptor:%s>" % self.name
#------------------------------------------------------------------ #------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment