From eeea49596a7431df2dd7afa7f6fd8360b37b5cd1 Mon Sep 17 00:00:00 2001 From: Marcin Mincer Date: Tue, 12 Jul 2011 01:59:54 -0700 Subject: [PATCH] Fixed a bug causing "NameError: global name 'code' is not defined". --- jinja2/bccache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jinja2/bccache.py b/jinja2/bccache.py index 866568c..0b0ccad 100644 --- a/jinja2/bccache.py +++ b/jinja2/bccache.py @@ -98,7 +98,7 @@ class Bucket(object): 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.""" -- 2.26.2