Fixed a bug causing "NameError: global name 'code' is not defined".
authorMarcin Mincer <marcin.mincer@gmail.com>
Tue, 12 Jul 2011 08:59:54 +0000 (01:59 -0700)
committerMarcin Mincer <marcin.mincer@gmail.com>
Tue, 12 Jul 2011 08:59:54 +0000 (01:59 -0700)
jinja2/bccache.py

index 866568cff95c5cc427be05f5d94c3a7dca55f2eb..0b0ccad1f243c598fc23c84191275d2570c65330 100644 (file)
@@ -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."""