diff options
| author | Kiss György <kissgyorgy@me.com> | 2015-06-06 14:40:16 +0200 |
|---|---|---|
| committer | Kiss György <kissgyorgy@me.com> | 2015-06-06 14:40:16 +0200 |
| commit | 1395f5485c4155a67f4ca0e18507387e02c985d0 (patch) | |
| tree | 394483636bda7fcf318f68920930c49b557427fa /docs | |
| parent | 713bc5f2785636327f4cee40d958bcff83afa9c5 (diff) | |
| download | pyramid-1395f5485c4155a67f4ca0e18507387e02c985d0.tar.gz pyramid-1395f5485c4155a67f4ca0e18507387e02c985d0.tar.bz2 pyramid-1395f5485c4155a67f4ca0e18507387e02c985d0.zip | |
More idiomatic code
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/viewconfig.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/viewconfig.rst b/docs/narr/viewconfig.rst index fc5ae6dc6..46b2c4f76 100644 --- a/docs/narr/viewconfig.rst +++ b/docs/narr/viewconfig.rst @@ -119,7 +119,7 @@ Non-Predicate Arguments ``renderer`` Denotes the :term:`renderer` implementation which will be used to construct a :term:`response` from the associated view callable's return value. - + .. seealso:: See also :ref:`renderers_chapter`. This is either a single string term (e.g. ``json``) or a string implying a @@ -1020,7 +1020,7 @@ there's a ``should_cache`` GET or POST variable: @view_config(http_cache=3600) def view(request): response = Response() - if not 'should_cache' in request.params: + if 'should_cache' not in request.params: response.cache_control.prevent_auto = True return response |
