Permalink
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...
1 parent eac5f96 commit e5bc22acab50680bfea4cb001499f9cb6c84c820 Marc Abramowitz committed Mar 22, 2013
Showing with 0 additions and 7 deletions.
  1. +0 −7 pyramid_jinja2/__init__.py
@@ -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', ''))

0 comments on commit e5bc22a

Please sign in to comment.