[Epydoc-commits] SF.net SVN: epydoc: [1452] trunk/epydoc/src/epydoc/test/encoding.doctest
Brought to you by:
edloper
|
From: <ed...@us...> - 2007-02-11 04:44:42
|
Revision: 1452
http://svn.sourceforge.net/epydoc/?rev=1452&view=rev
Author: edloper
Date: 2007-02-10 20:23:35 -0800 (Sat, 10 Feb 2007)
Log Message:
-----------
- Acutally *use* the remove_surrogates helper function that's defined
when printing output. (This is needed because some systems create
surrogates but others don't.)
Modified Paths:
--------------
trunk/epydoc/src/epydoc/test/encoding.doctest
Modified: trunk/epydoc/src/epydoc/test/encoding.doctest
===================================================================
--- trunk/epydoc/src/epydoc/test/encoding.doctest 2007-02-11 04:11:41 UTC (rev 1451)
+++ trunk/epydoc/src/epydoc/test/encoding.doctest 2007-02-11 04:23:35 UTC (rev 1452)
@@ -22,7 +22,9 @@
>>> # Monkey-patch the write function:
>>> def docstring_to_html(self, parsed_docstring, w=None, i=0):
... s = parsed_docstring.to_html(None).strip()
- ... print s.encode('ascii', 'xmlcharrefreplace')
+ ... s = s.encode('ascii', 'xmlcharrefreplace')
+ ... s = remove_surrogates(s)
+ ... print s
... return ''
>>> HTMLWriter.docstring_to_html = docstring_to_html
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|