mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Update Mako-1.1.5
This commit is contained in:
parent
4eb0fea423
commit
668f6bfbb8
5 changed files with 28 additions and 12 deletions
|
@ -12,7 +12,6 @@ import os
|
|||
import re
|
||||
import shutil
|
||||
import stat
|
||||
import sys
|
||||
import tempfile
|
||||
import types
|
||||
import weakref
|
||||
|
@ -414,14 +413,12 @@ class Template(object):
|
|||
self, data, filename, path, self.module_writer
|
||||
)
|
||||
module = compat.load_module(self.module_id, path)
|
||||
del sys.modules[self.module_id]
|
||||
if module._magic_number != codegen.MAGIC_NUMBER:
|
||||
data = util.read_file(filename)
|
||||
_compile_module_file(
|
||||
self, data, filename, path, self.module_writer
|
||||
)
|
||||
module = compat.load_module(self.module_id, path)
|
||||
del sys.modules[self.module_id]
|
||||
ModuleInfo(module, path, self, filename, None, None, None)
|
||||
else:
|
||||
# template filename and no module directory, compile code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue