Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove useless warning: `DeprecationWarning: reload_templates setting is

deprecated, use pyramid.reload_templates instead.`

This warning can be displayed even when the user has not used
reload_templates, because Pyramid itself can set this.

Fixes GH-57
  • Loading branch information...
commit e5bc22acab50680bfea4cb001499f9cb6c84c820 1 parent eac5f96
Marc Abramowitz authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 pyramid_jinja2/
7 pyramid_jinja2/
@@ -258,13 +258,6 @@ def _get_or_build_default_environment(registry):
if reload_templates is None:
# since version 1.5, both settings are supported
reload_templates = settings.get('pyramid.reload_templates', False)
- else:
- warnings.warn(
- 'reload_templates setting is deprecated, use '
- 'pyramid.reload_templates instead.',
- DeprecationWarning,
- 2,
- )
reload_templates = asbool(reload_templates)
undefined = parse_undefined(settings.get('jinja2.undefined', ''))
Please sign in to comment.
Something went wrong with that request. Please try again.