Permalink
Browse files

Merge pull request #48 from ymirpl/master

"NameError: global name 'code' is not defined" if using byte code cache on Python 2.7.1.
  • Loading branch information...
2 parents 4e699a9 + eeea495 commit 6e6afa365beca94f9cf8fbdf458ef1b2aed3ee69 @mitsuhiko mitsuhiko committed Jul 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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."""

0 comments on commit 6e6afa3

Please sign in to comment.