don't remove self from example code in the HTML output (closes #13223)

Patch by Víctor Terrón.
This commit is contained in:
Benjamin Peterson 2014-06-07 16:44:00 -07:00
parent 3c2dca67ac
commit ed1160b39c
4 changed files with 64 additions and 2 deletions

View file

@ -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: