projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e699a9
)
Fixed a bug causing "NameError: global name 'code' is not defined".
author
Marcin Mincer
<marcin.mincer@gmail.com>
Tue, 12 Jul 2011 08:59:54 +0000
(
01:59
-0700)
committer
Marcin Mincer
<marcin.mincer@gmail.com>
Tue, 12 Jul 2011 08:59:54 +0000
(
01:59
-0700)
jinja2/bccache.py
patch
|
blob
|
history
diff --git
a/jinja2/bccache.py
b/jinja2/bccache.py
index 866568cff95c5cc427be05f5d94c3a7dca55f2eb..0b0ccad1f243c598fc23c84191275d2570c65330 100644
(file)
--- 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."""