Skip to content

Commit e4f54bd

Browse files
committed
Strip out overstrike junk
[SVN r15040]
1 parent 30ea4dd commit e4f54bd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/docstring.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ def run(args = None):
3434
result = doctest.testmod(sys.modules.get(__name__))
3535

3636
import pydoc
37-
docmodule = pydoc.TextDoc().docmodule
37+
import re
38+
docmodule = lambda m: re.sub(".\10", "", pydoc.text.docmodule(m))
3839
try:
3940
print 'printing module help:'
4041
print docmodule(docstring_ext)

0 commit comments

Comments
 (0)