summaryrefslogtreecommitdiffstats
path: root/Lib/test/pydoc_mod.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-06-07 23:44:00 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-06-07 23:44:00 (GMT)
commitc3e1e90221d65f6c6db1fb0b65bd48205674d7f3 (patch)
tree81fa0d375103ade3b027a818c8d12d16c71419bb /Lib/test/pydoc_mod.py
parent4547d371c61e7a4bcc208264d698b805815bbd96 (diff)
downloadcpython-c3e1e90221d65f6c6db1fb0b65bd48205674d7f3.zip
cpython-c3e1e90221d65f6c6db1fb0b65bd48205674d7f3.tar.gz
cpython-c3e1e90221d65f6c6db1fb0b65bd48205674d7f3.tar.bz2
don't remove self from example code in the HTML output (closes #13223)
Patch by Víctor Terrón.
Diffstat (limited to 'Lib/test/pydoc_mod.py')
-rw-r--r--Lib/test/pydoc_mod.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/pydoc_mod.py b/Lib/test/pydoc_mod.py
index 9c53324..aa93a33 100644
--- a/Lib/test/pydoc_mod.py
+++ b/Lib/test/pydoc_mod.py
@@ -15,6 +15,16 @@ class B(object):
NO_MEANING = "eggs"
pass
+class C(object):
+ def say_no(self):
+ return "no"
+ def get_answer(self):
+ """ Return say_no() """
+ return self.say_no()
+ def is_it_true(self):
+ """ Return self.get_answer() """
+ return self.get_answer()
+
def doc_func():
"""
This function solves all of the world's problems: