diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-06-07 23:44:00 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-06-07 23:44:00 (GMT) |
commit | ed1160b39c23c4b035b6c203cc6df53274d08939 (patch) | |
tree | cb26a22336a58700237f07d8c8fa1402ee8b0a0a /Lib/test/pydoc_mod.py | |
parent | 3c2dca67ac9cdc26fb02473e05723486ffc8d52b (diff) | |
download | cpython-ed1160b39c23c4b035b6c203cc6df53274d08939.zip cpython-ed1160b39c23c4b035b6c203cc6df53274d08939.tar.gz cpython-ed1160b39c23c4b035b6c203cc6df53274d08939.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.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/pydoc_mod.py b/Lib/test/pydoc_mod.py index f86b5c6..cda1c9e 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: |