Permalink
Browse files

Fixed a bug causing "NameError: global name 'code' is not defined".

  • Loading branch information...
1 parent 4e699a9 commit eeea49596a7431df2dd7afa7f6fd8360b37b5cd1 @ymirpl ymirpl 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 eeea495

Please sign in to comment.