Add back path=None argument into find_module. This fixes #618 and revert #524.
Mention register_error_handler in errorhandler doc

The documentation for @errorhandler gives "app.error_handler_spec[None][404] = page_not_found" as an example for adding an error handler without the decorator.  However, register_error_handler appears to be the correct way to do this (added 0.7), and it eliminates the problems with modifying error_handler_spec directly.
Update blueprints.rst - Error Handlers

Added information about custom error handlers in Blueprints with example based simple_page.
Add a non-decorator version of the error handler register function

The main application object has a register_error_handler function
which mirrors the decorator's functionality. According to the principle
of least surprise, make sure blueprints also have this convenience function.
Add tests for user-defined exceptions in blueprints
Make the decorators attribute on View a tuple by default

To discourage accidental runtime modification applying to all views.
Merge branch 'master' of github.com:obeattie/flask
Check error handlers for specific classes first

This allows adding error handlers like this:

    @app.errorhandler(werkzeug.exceptions.Forbidden)

And subclassing HTTPExceptions:

    class ForbiddenBecauseReason(Forbidden): pass

    @app.errorhandler(ForbiddenBecauseReason)
    def error1(): return "Forbidden because reason", 403
    @app.errorhandler(403)
    def error2(): return "Forbidden", 403

... the idea being, that a flask extension might want to raise an
exception, with the default behaviour of creating a HTTP error page,
but still allowing the user to add a view/handler specific to that
exception (e.g., "Forbidden because you are not in the right group").
Update url_for documentation

Previous documentation referenced a non-existent property on the Flask
object called "build_error_handler".

This should actually reference Flask.url_build_error_handlers.
Merge pull request #830 from hntw/patch-1

Update blueprints.rst - Add Error Handlers
Merge pull request #885 from jmhobbs/master

Update url_for documentation for Flask.url_build_error_handlers
Merge pull request #707 from xsleonard/patch-1

Mention register_error_handler in errorhandler doc
Merge pull request #864 from obeattie/master

Make the decorators attribute on View a tuple by default
Merge pull request #859 from wvh/register_error_handler

Add a non-decorator version of the error handler register function
Revert "Merge pull request #859 from wvh/register_error_handler"

This reverts commit 6347e75deea2eda444c60080fda3885c1fb7705d, reversing
changes made to 3fd40e83e5df4dbde8531a76c42d26bf76674e95.
Revert "Revert "Merge pull request #859 from wvh/register_error_handler""

This reverts commit 2aa26fff04a98f2435e8e3015e92ef6108d3b485.
Fix import in viewdecorators.rst for @templated
Tweak wording in viewdecorators.rst
missed word.

request tstack -> request context stack
Fix when release date is not today

Also, some fixes for PyFlakes

Original commit by @dongweiming at
a05c4038706f3a95776adea376bc664c0714b426