Issue #1229 resolved

Clean up documentation (dispatching, default methods)

miebster
created an issue

On this page http://docs.cherrypy.org/stable/concepts/dispatching.html the code that reads:

class Blog:
    def default(self, year, month, day):
        ...
    default.exposed = True

class Root: pass

root = Root()
root.blog = Blog()

Should be changed to

class Blog(object):
    def default(self, year, month, day):
        pass

    default.exposed = True
#
#
class Root(object): 
    pass

root = Root()
root.blog = Blog()

I've added (object) to the class definition, added new lines (the comments need to be replaced with newlines), and moved pass to the next line of Root. PEP8 compliance stuff.