Skip to content
Myr

Merge remote-tracking branch 'kadams54/master'

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

authored by Armin Ronacher · committed by Armin Ronacher · parents 96512ac, 5871ba8 · Browse files · 1 file+8 added−2 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+8 added−2 removed

  • other:+8 added−2 removed

1 file+8 added−2 removed

modified:jinja2/bccache.py+8 added-2 removed
287 unmodified lines
288 self.prefix = prefix289 self.timeout = timeout290291 def load_bytecode(self, bucket):292 try:292 code = self.client.get(self.prefix + bucket.key)293 code = self.client.get(self.prefix + bucket.key)294 except:295 code = None296 if code is not None:297 bucket.bytecode_from_string(code)298299 def dump_bytecode(self, bucket):300 args = (self.prefix + bucket.key, bucket.bytecode_to_string())301 if self.timeout is not None:302 args += (self.timeout,)303 try:300 self.client.set(*args)304 self.client.set(*args)305 except:306 pass