diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2017-06-26 16:30:31 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-26 10:30:31 -0400 |
| commit | 081e78716085ff4af08604af5d084c8fd27c0730 (patch) | |
| tree | 369d3c9617c9d28631b089d77fd53c9fed0fac18 /docs/topics/http | |
| parent | fba0eaa5d60603721d7b4653e3efacbfb3613bd2 (diff) | |
Refs #23919 -- Stopped inheriting from object to define new style classes.
Tests and docs complement to cecc079168e8669138728d31611ff3a1e7eb3a9f.
Diffstat (limited to 'docs/topics/http')
| -rw-r--r-- | docs/topics/http/middleware.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/http/middleware.txt b/docs/topics/http/middleware.txt index 09cf78557d..86283af7fa 100644 --- a/docs/topics/http/middleware.txt +++ b/docs/topics/http/middleware.txt @@ -43,7 +43,7 @@ A middleware can be written as a function that looks like this:: Or it can be written as a class whose instances are callable, like this:: - class SimpleMiddleware(object): + class SimpleMiddleware: def __init__(self, get_response): self.get_response = get_response # One-time configuration and initialization. |
