sanic/sanic
Jeong YunWon 15e7d8ab2e Handle hooks parameters in more debuggable way
1. not list() -> callable()
The args of hooking parameters of Sanic have to be callables.
For wrong parameters, errors will be generated from:
```
    listeners += args
```

By checking just list type, the raised error will be associated
with `[args]` instead of `args`, which is not given by users.
With this patch, the raised error will be associated with `args`.
Then users can notice their argument was neither callable nor list
in the easier way.

2. Function -> Functions in document
Regarding the parameter as a list is harmless to the user code.
But unawareness of its type can be list can limit the potent of
the user code.
2016-12-28 18:14:57 +09:00
..
__init__.py Increment version to 0.1.9 2016-12-24 18:51:16 -08:00
__main__.py Added newline to fix flake8 error 2016-10-18 01:38:50 -07:00
blueprints.py class based views implementation for sanic 2016-11-25 09:10:25 +02:00
config.py Add lru_cache to get 2016-10-20 00:28:05 -04:00
cookies.py Fix flake8 2016-11-19 18:04:35 -08:00
exceptions.py Change Payload Too Large process 2016-12-04 10:50:32 +09:00
log.py allow overriding logging.basicConfig 2016-12-23 16:17:34 -08:00
request.py return 400 on invalid json post data 2016-12-07 20:40:31 -08:00
response.py Use a try/except, it's a bit faster 2016-12-24 18:37:55 -08:00
router.py fix typo 2016-11-28 14:05:47 -05:00
sanic.py Handle hooks parameters in more debuggable way 2016-12-28 18:14:57 +09:00
server.py Raise error if response is malformed. Issue #115 2016-12-24 17:09:41 -08:00
static.py Remove trailing whitespace 2016-12-24 18:11:46 -08:00
utils.py improving comments and examples 2016-11-28 14:00:39 -05:00
views.py fixing line length 2016-11-28 14:22:07 -05:00