Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

There is no need to initialize Environment#bytecode_cache twice #114

Merged
merged 1 commit into from

2 participants

@cocoatomo

In the init method of Environment class, self.bytecode is initialized twice. The first initialization does nothing.

self.bytecode_cache = None
self.cache = create_cache(cache_size)
self.bytecode_cache = bytecode_cache
@mitsuhiko mitsuhiko merged commit 3054985 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 1 deletion.
  1. +0 −1  jinja2/environment.py
View
1  jinja2/environment.py
@@ -270,7 +270,6 @@ def __init__(self,
# set the loader provided
self.loader = loader
- self.bytecode_cache = None
self.cache = create_cache(cache_size)
self.bytecode_cache = bytecode_cache
self.auto_reload = auto_reload
Something went wrong with that request. Please try again.