Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

"NameError: global name 'code' is not defined" if using byte code cache on Python 2.7.1. #48

Merged
merged 1 commit into from

2 participants

Marcin Mincer Armin Ronacher
Marcin Mincer

A typo in recent commit is causing this bug. Patch attached.

Armin Ronacher
Owner

Thanks.

Armin Ronacher mitsuhiko merged commit 6e6afa3 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 1 addition and 1 deletion.
  1. +1 −1  jinja2/bccache.py
2  jinja2/bccache.py
View
@@ -98,7 +98,7 @@ def write_bytecode(self, f):
raise TypeError('can\'t write empty bucket')
f.write(bc_magic)
pickle.dump(self.checksum, f, 2)
- marshal_dump(code, f)
+ marshal_dump(self.code, f)
def bytecode_from_string(self, string):
"""Load bytecode from a string."""
Something went wrong with that request. Please try again.