Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Marcin Mincer · committed by Marcin Mincer · parent 4e699a9 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:jinja2/bccache.py+1 added-1 removed
96 unmodified lines
97 if self.code is None:98 raise TypeError('can\'t write empty bucket')99 f.write(bc_magic)100 pickle.dump(self.checksum, f, 2)101 marshal_dump(code, f)101 marshal_dump(self.code, f)102103 def bytecode_from_string(self, string):104 """Load bytecode from a string."""105 self.load_bytecode(BytesIO(string))
196 unmodified lines