From: Peter M. <pe...@mo...> - 2009-12-21 21:37:42
|
When debugging (using ActiveState Komodo) I get this error: File "C:\Python25\lib\site-packages\docutils\nodes.py", line 347, in shortrepr data = reprunicode.__repr__(self[:16] + ' ...') TypeError: unbound method __repr__() must be called with reprunicode instance as first argument (got unicode instance instead) The method that does this is: 1 def shortrepr(self): 2 data = reprunicode.__repr__(self) 3 if len(data) > 20: 4 data = reprunicode.__repr__(self[:16] + ' ...') 5 return '<%s: %s>' % (self.tagname, data) and if I change line 4 to: data = data[:16] + ' ...') I do not get the error. The "fix" seems a little too easy. Anyway this is >>> docutils.__version__ '0.6' with Python 5.2 on Windows XP. Thanks, Peter |