Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #58 from msabramo/issue-57

Remove useless warning: `DeprecationWarning: reload_templates setting is deprecated, use pyramid.reload_templates instead.`
  • Loading branch information...
commit 0fc436880bc3f0843121edf44ebf8f94ec33db67 2 parents eac5f96 + e5bc22a
Domen Kožar iElectric authored

Showing 1 changed file with 0 additions and 7 deletions. Show diff stats Hide diff stats

  1. +0 7 pyramid_jinja2/__init__.py
7 pyramid_jinja2/__init__.py
@@ -258,13 +258,6 @@ def _get_or_build_default_environment(registry):
258 258 if reload_templates is None:
259 259 # since version 1.5, both settings are supported
260 260 reload_templates = settings.get('pyramid.reload_templates', False)
261   - else:
262   - warnings.warn(
263   - 'reload_templates setting is deprecated, use '
264   - 'pyramid.reload_templates instead.',
265   - DeprecationWarning,
266   - 2,
267   - )
268 261 reload_templates = asbool(reload_templates)
269 262 undefined = parse_undefined(settings.get('jinja2.undefined', ''))
270 263

0 comments on commit 0fc4368

Please sign in to comment.
Something went wrong with that request. Please try again.